text stringlengths 2 1.03M |
|---|
<?hh // partial
/**
* use providers type
* @see \App\Config\ProvidersType
*/
return dict[
'providers' => vec[
\App\Providers\ActionProvider::class,
\App\Providers\StorageProvider::class,
\App\Providers\MapperProvider::class,
]
]; |
<?php
namespace app\admin\controller;
use clt\WchatOauth;
class Wechat extends Common{
private $return = array();
protected $instance_id;
/**
* 微信账户设置
*/
public function config()
{
$info = db('wx_config')->where([ 'key' => 'SHOPWCHAT'])->field('value')->find();
if (empty($... |
<?php
namespace app\admin\model;
use think\Model;
class Admin extends Model
{
} |
@extends('layouts.app') @section('content')
<div class="container" id="container">
<div class="col-sm-offset-1 col-sm-10">
{{-- if there is no session data don't show the form --}}
@if ((session()->has('verify')))
<div class="panel panel-primary">
<div class="panel-heading">
<h4>
... |
@extends('layouts.front.master')
@push('css')
@endpush
@section('content')
<div id="homepage-1">
<div class="ps-home-banner ps-home-banner--1">
<div class="ps-container">
<div class="ps-section__left">
<div class="ps-carousel--nav-inside owl-slider" data-owl-auto="true" data-o... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EmployeeRequest;
use App\Models\Log;
use App\Models\Role;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
class EmployeesController extends Controller
{
public function index() ... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Modelos extends MX_Controller {
public $cview = "modelos";
public $template = 'templates/admin_config';
public $controller = "modelos";
public $data =[
"descripcion" => "",
"idMarcas" => "",
"idEsta... |
<?php $this->beginContent('//layouts/main'); ?>
<div id="content">
<?php echo $content; ?>
</div><!-- content -->
<?php $this->endContent(); ?> |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Kyc extends Model
{
protected $table = 'kyc';
// Kyc Types
public static $bvn = 'bvn';
public static $ibvn = 'ibvn';
public static $nin = 'nin';
public static $pvc = 'pvc';
public static function getKycCost ( $slug... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BoxType extends Model
{
protected $table = 'SC_BOX_TYPE';
public $timestamps = false;
protected $primaryKey = 'PK_NO';
protected $fillable = ['PK_NO'];
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... |
<nav class="navbar page-header">
<a href="#" class="btn btn-link sidebar-mobile-toggle d-md-none mr-auto">
<i class="fa fa-bars"></i>
</a>
<a class="navbar-brand" href="#">
<img src="./imgs/logo.png" alt="logo">
</a>
<a href="#" class="btn btn-link sidebar-toggle d-md-down-none">
... |
@extends('layouts.app')
@section('content')
<div class="container">
{{-- <h2>Aggiungi un nuovo piatto</h2> --}}
{{-- FORM --}}
<div class="card">
<div class="card-header form_color"><h2>Aggiungi un nuovo piatto</h2></div>
<div class="card-body">
<form action="{{ route('admin.plates.stor... |
<?php
namespace app\index\controller;
class Index
{
public function index()
{
phpinfo();
//return '<style type="text/css">*{ padding: 0; margin: 0; } .think_default_text{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ backgroun... |
<?php
namespace Marky;
class MarkyTest extends \PHPUnit_Framework_TestCase
{
/** @test */
public function it_should_be_created_from_string()
{
$marky = Marky::fromString('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
$this->assertNotEmpty($marky->generate(500));
}
} |
<?php
defined('BASEPATH') ;
class Product_delivery_order_model extends CI_Model
{
const TABLE_NAME = 'product_delivery_order';
public function insert_product_delivery_order($delivery_order_id, $items)
{
/**
* items = array of item
* item = object{'id', 'amount'}
*
... |
<?php
require('../vendor/autoload.php');
header('Content-Type: application/json');
if(strtolower($_SERVER['REQUEST_METHOD']) == 'post')
{
$headers = getallheaders();
if(isset($headers['authorization']))
{
if(preg_match('/Bearer\s(\S+)/', $headers['authorization'], $matches))
{
... |
<?php
/* SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_association_script.html.twig */
class __TwigTemplate_1007c896ca895f20dce19b835be677413d48ad775394456192f4b64bdb7631fc extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent =... |
<?php
namespace App\Http\Controllers;
use App\Item;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Maatwebsite\Excel\Facades\Excel;
class ItemsController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public functio... |
<?php $__env->startSection('title', __('Not Found')); ?>
<?php $__env->startSection('code', '404'); ?>
<?php $__env->startSection('message', __('Not Found')); ?>
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\w... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Owner_Index
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Gallery extends Model
{
protected $table = 'gallery';
public function gallery()
{
return $this->hasMany('App\Models\Gallery');
}
} |
<?php
namespace App\Containers\Message\Tasks;
use App\Containers\Message\Data\Repositories\MessageRepository;
use App\Ship\Exceptions\NotFoundException;
use App\Ship\Parents\Tasks\Task;
use Exception;
class FindMessageByIdTask extends Task
{
private $repository;
public function __construct(MessageRepositor... |
<?php
namespace Kendo\UI;
class TreeListEditable extends \Kendo\SerializableObject {
//>> Properties
/**
* The editing mode to use. The supported editing modes are "inline" and "popup".
* @param string $value
* @return \Kendo\UI\TreeListEditable
*/
public function mode($value) {
retur... |
<?php
/**
* phpBAT
*
* Please report bugs on https://github.com/robertsaupe/phpbat/issues
*
* @author Robert Saupe <mail@robertsaupe.de>
* @copyright Copyright (c) 2018, Robert Saupe. All rights reserved
* @link https://github.com/robertsaupe/phpbat
* @license MIT License
*/
namespace RobertSaupe\phpBAT\Job;... |
<div id="delete-<?php echo $user['id_user']; ?>" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"... |
<?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
// For UnitTest, explicit require() is necessary.
// For WebTest, you may remove the first line.
// foreach (array() as $file2require) {
foreach (array('logger_user.common.inc') as $file2require) {
$is_found = FALSE;
foreach (array('', '.php') as $suffix) {
$f = sprintf(
'%s/%s/%s',
DRUPAL_ROOT,
dr... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\Page\Shop;
use Sylius\Behat\Page\SymfonyPage;
/**
* @author Arkadiusz Krakow... |
<div class="form-group @if($errors->has('aviso_gral_id')) has-error @endif">
<label for="aviso_gral_id-field">Aviso_gral_id</label>
{!! Form::text("aviso_gral_id", null, array("class" => "form-control input-sm", "id" => "aviso_gral_id-field")) !!}
@if... |
<?php
namespace App\Http\Controllers;
use App\Campanha;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\User;
use App\Instituicao;
class DashboardController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index()... |
<?php
// error_reporting(E_ALL);
header('Content-Type: text/plain');
require_once 'PayPal.php';
require_once 'PayPal/Profile/Handler/Array.php';
require_once 'PayPal/Profile/API.php';
require_once 'lib/constants.inc.php';
// Settings.
$certfile = dirname(__FILE__) . '/sdk-seller_cert_key_pem.txt';
$certpass = '';
$... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\CategoryRequest;
use App\Category;
use Illuminate\Support\Facades\Gate;
class KategoriController extends Controller
{
public function showkategori()
{
$kats=Category::all();
return view('kategori.showkateg... |
<?php namespace Infusionsoft\Api\Rest;
use Infusionsoft\Api\Rest\Traits\CannotCreate;
use Infusionsoft\Api\Rest\Traits\CannotDelete;
<<<<<<< HEAD
<<<<<<< HEAD
use Infusionsoft\Api\Rest\Traits\CannotModel;
=======
>>>>>>> codeigniter4
=======
use Infusionsoft\Api\Rest\Traits\CannotModel;
>>>>>>> codeigniter4
use Infusi... |
<?php
namespace App\Http\Controllers;
use AuthManager;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repositories\BannersRepository;
use App\Http\Requests\UpdateBannerRequest;
use App\Banner;
class BannersController extends Controller
{
/**
* @var \App\Repositories\BannersReposit... |
<?php
namespace Cob\Bundle\ApiServicesBundle\Tests\Unit\Models\Events\ResponseModel\Collection;
use Cob\Bundle\ApiServicesBundle\Models\Events\ResponseModel\Collection\PostAddModelToCollectionEvent;
use Cob\Bundle\ApiServicesBundle\Tests\ServiceClientMockTrait;
use Cob\Bundle\ApiServicesBundle\Tests\Unit\Mocks\Person... |
<?php
/**
* IdentitySchemaTest
*
* PHP version 7.3
*
* @category Class
* @package Ory\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid P... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateContactUs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contact_u_s', func... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDoctorsTable extends Migration
{
public function up()
{
Schema::create('doctors', function (Blueprint $table) {
$table->id();
$table... |
<?php
namespace App\Http\Controllers\Staff;
use App\Models\Customer;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
/**
* Class CustomerController
* @package App\Http\Controllers
*/
class CustomerController extends Controller
{
/**
* Display a listing of the resource.
*
* @re... |
<?php
class Tellerandexchange_TellerController extends Zend_Controller_Action {
private $activelist = array('មិនប្រើប្រាស់', 'ប្រើប្រាស់');
public function init()
{
/* Initialize action controller here */
header('content-type: text/html; charset=utf8');
defined('BASE_URL') || define('BASE... |
<?php
namespace Drupal\Tests\ds\FunctionalJavascript;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
/**
* Tests javascript behavior for the admin UI.
*
* @group ds
*/
class JavascriptTest extends JavascriptTestBase {
/**
* {@inheritdoc}
*/
pu... |
<?php
/**
* Block: Tickets
* Extra column
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/tickets/blocks/tickets/extra.php
*
* See more documentation about our Blocks Editor templating system.
*
* @link https://evnt.is/1amp Help article for RSVP & Ticket template files.... |
<?php
namespace api\modules\v1\controllers\member;
use api\modules\v1\controllers\CoreController;
use Yii;
use api\modules\models\member\Member;
use api\modules\models\order\Orders;
/*
会员相关控制器
*/
class MemberController extends CoreController
{
/*
会员首页 信息
*/
public function actionInfo()
{
unset($this->_membe... |
<?php
session_start();
require_once('navigation.php');
?>
<!-- Page Content -->
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Carrom Wars
</h1>
<ol c... |
<?php $this->load->view("template/head.php") ?>
<?php
if (isset($akun)) {
$this->load->view("template/header.php");
}else {
?>
<body>
<!-- HEADER -->
<header>
<!-- TOP HEADER -->
<div id="top-header">
</div>
<!-- /TOP HEADER -->
<!-- MAIN HEADER -->
<div id="header">
<!-- container -->... |
<?php declare(strict_types=1);
namespace Swoft\Crontab\Annotaion\Mapping;
/**
* Class Cron
*
* @since 2.0
*
* @Annotation
* @Target("METHOD")
* @Attributes({
* @Attribute("cron", type="string")
* })
*/
class Cron
{
/**
* @var string
*/
private $cron = '';
/**
* Validator cons... |
<?php
namespace App\Http\Controllers\Admin;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class UsersRolesController extends Controller
{
public function update(Request $request, User $user)
{
$user->roles()->detach();
if ($request->filled('roles'))
... |
<div class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="sparkline10-list">
<div class="panel panel-primary">
<div class="panel-heading">
<?php echo $topik; ?>
... |
@foreach($product->comments as $comment)
@include('components.comment_item',['comment'=>$comment])
@endforeach |
<?php
class Swift_Transport_Esmtp_PlainAuthenticatorTest extends \SwiftMailerTestCase
{
private $_agent;
public function setUp()
{
$this->_agent = $this->getMockery('Swift_Transport_SmtpAgent')->shouldIgnoreMissing();
}
public function testKeywordIsPlain()
{
/* -- RFC 4616, 1.... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Charge extends Model
{
use HasFactory;
/**
* Attributes
*
* @var array
*/
protected $fillable = ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Auth;
class EntryRow extends Model
{
use HasFactory;
protected $fillable = [
'value'
];
public function entry()
{
... |
<?php
/**
* League.Uri (http://uri.thephpleague.com/components)
*
* @package League\Uri
* @subpackage League\Uri\Components
* @author Ignace Nyamagana Butera <nyamsprod@gmail.com>
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License)
* @version 2.0.2
* @link ... |
<?php
/**
* @var $this yii\web\View
* @var $dataProvider yii\data\DataProviderInterface
* @var $category shop\entities\Shop\Category
*/
use yii\helpers\Html;
$this->title = $category->getSeoTitle();
$this->registerMetaTag(['name' =>'description', 'content' => $category->meta->description]);
$this->registerMetaTa... |
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800"><?=$title?></h1>
<div class="row">
<div class="col-lg-6">
<?=$this->session->flashdata('message');?>
... |
<?php declare(strict_types = 1);
namespace Category\DI;
use Nette\Application\IPresenterFactory;
use Category\Fixtures\CategoryFixture;
use Kdyby\Doctrine\DI\IEntityProvider;
use blitzik\Fixtures\IFixtureProvider;
use Nette\DI\CompilerExtension;
use Nette\DI\Compiler;
class CategoryExtension extends CompilerExtensio... |
<?php
namespace backend\controllers;
use Yii;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
/**
* Site controller
*/
class SiteController extends Controller
{
/**
* {@inheritdoc}
*/
public function behaviors()
{
return [... |
<head>
<style type="text/css">
@media (max-width: 360px) {
.logo {
width: 100;
height: 68;
}
.my-sm-0{
height: 30;
font-size: 11px;
}
.navbar-toggler {
height: 30px;
}
.navbar-toggler-icon {
height: 20px;
width: 20px;
}
.mr-sm-2{
height: 30px;
}
h2 {
font-size: 10;
font-family... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="header-listing">
<ul class="listing-views">
<li><a name="listview" href="#"><i class="fa fa-list"></i></a></li>
<li class="active"><a name="gridview" href="#"><i class="fa fa-th"></i></a></li>
</ul>
</div>
<div... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRestaurantsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('restaurants... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Equipe_officine extends Model
{
//
} |
<?php
/*
* This file is part of the WSDL2PHPGenerator package.
* (c) WSDL2PHPGenerator.
*/
namespace Wsdl2PhpGenerator\Xml;
/**
* An XML node which represents a SOAP service.
*/
class ServiceNode extends DocumentedNode
{
/**
* Returns the name of the service.
*
* @return string the service na... |
<?php
namespace Cookbook\CoreBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Doctrine\ORM\EntityRepository;
class RecipeType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('name','tex... |
<?php
namespace backend\assets\plugins;
use yii\web\AssetBundle;
/**
* Class DatePickerAsset
* @package backend\assets\plugins
*/
class DatePickerAsset extends AssetBundle
{
/**
* @var string
*/
public static $language;
/**
* @var string
*/
public $sourcePath = '@vendor/almasa... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Metaways Infosystems GmbH, 2013
* @copyright Aimeos (aimeos.org), 2015-2018
* @package Client
* @subpackage Html
*/
namespace Aimeos\Client\Html\Checkout\Standard\Address\Billing;
/**
* Default implementation of checkout billi... |
<?php
declare(strict_types=1);
namespace App\Nova\Lenses\Artist;
use App\Models\Wiki\Artist;
use App\Nova\Lenses\BaseLens;
use Illuminate\Database\Eloquent\Builder;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\LensRequest;
use Laravel\Nova\Http\Requests\NovaRequest;
/**
... |
<!-- Bootstrap core JavaScript-->
<script src="<?php echo base_url() ?>assets/backend/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo base_url() ?>assets/backend/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="<?php echo base_url() ?>assets/back... |
<?php
namespace frontend\controllers;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
/... |
<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title><?php // echo WEBNAME; ?> | Add Software Manual</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name... |
<?php
/**
* Verifies that class members have scope modifiers.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://githu... |
<?php
namespace App\Http\Livewire;
use App\Models\Contact;
use Livewire\Component;
class HelloWorld extends Component
{
public $contacts;
public function mount()
{
$this->contacts = Contact::all();
}
public function render()
{
return view('livewire.hello-world');
}
} |
<?php
/* Cachekey: cache/stash_default/doctrine/[ramonleenders\blockdesigner\blockdesignerprocessor@[annot]][1]/ */
/* Type: array */
/* Expiration: 2020-06-12T05:12:57-05:00 */
$loaded = true;
$expiration = 1591956777;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YTowOnt9... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<!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.0">
<title>Document</title>
</head>
<body>
<h1>Categories</h1>
<ul>
@foreach($categories as $category)
... |
<?php
namespace Concrete\Core\Entity\Express;
use Concrete\Core\Attribute\Category\ExpressCategory;
use Concrete\Core\Attribute\ObjectTrait;
use Concrete\Core\Entity\Attribute\Value\ExpressValue;
use Concrete\Core\Entity\Express\Entry\Association as EntryAssociation;
use Concrete\Core\Entity\Express\Entry\ManyAssocia... |
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Tests\Integration\Db\Adapter\Pdo\Sqlit... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAnswersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('answers', funct... |
<?php
use Illuminate\Database\Seeder;
class PermissionUserTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('permission_user')->delete();
\DB::table('permission_user')->insert(array (
... |
<title>Create User</title>
<h2>Create User</h2>
<hr>
<br>
<div class="container">
<div class="row">
<div class="col s12 m8 l9">
<div class="row">
<form class="col s12" action="<?php echo base_url('admin/create_user_stat')?>" method="post">
<div class="row">
<div class="input-field col s6">
<... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a c... |
<?php
/*
* (c) Xidea Artur Pszczółka <biuro@xidea.pl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xidea\Bundle\ProductBundle;
use Xidea\Product\Events;
/**
* @author Artur Pszczółka <a.pszczolka@xidea.pl>
*/
final... |
<?php
namespace TYPO3\CMS\Version\Controller;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license in... |
<?php
namespace Illuminate\Routing;
use Closure;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\R... |
<?php
class td_more_article_box {
static function on_wp_footer_render_box() {
global $post;
/**
* More articles on post page
*/
if(is_single() and td_util::get_option('tds_more_articles_on_post_pages_enable') == 'show') {
//if to run the query
$td_... |
<?php
/**
* Отображение для postBackend/update:
*
* @category YupeView
* @package yupe
* @author Yupe Team <team@yupe.ru>
* @license https://github.com/yupe/yupe/blob/master/LICENSE BSD
* @link http://yupe.ru
**/
$this->breadcrumbs = array(
Yii::app()->getModule('blog')->getCategory() => ... |
<?php
namespace SyAliPay\Anttech\Blockchain\Twc;
/**
* ALIPAY API: anttech.blockchain.twc.preauthinfo.query request
*
* @author auto create
*
* @since 1.0, 2021-07-14 10:10:02
*/
class PreauthinfoQueryRequest
{
/**
* 预授权信息核验
*/
private $bizContent;
private $apiParas = [];
private $term... |
--TEST--
session rfc1867
--INI--
file_uploads=1
error_reporting=E_ALL&~E_NOTICE
comment=debug builds show some additional E_NOTICE errors
upload_max_filesize=1024
session.save_path=
session.name=PHPSESSID
session.use_cookies=1
session.use_only_cookies=0
session.upload_progress.enabled=1
session.upload_progress.cleanup=... |
@extends('layout')
@section('content')
<h1>Kết quả tìm kiếm:<i>"{{Input::get('insearch');}}"</i> </h1>
{{"Tìm thấy ".count($posts)." bài viết phù hợp với từ khóa search của bạn.";}}
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th>Title</th>
<th>De... |
<?php
namespace Simpletools\Db\Couchbase;
class PrefixIterator implements \Iterator
{
private $_CBResult = null;
private $_currentRow = null;
private $_startKey = null;
private $_initStartKey = null;
private $_endKey = null;
private $_limit = 100;
private $_skip = 0;
private $_includeDocs = true;
private... |
<?php
namespace Oro\Bundle\EntityConfigBundle\Tests\Unit\Form\Type;
use Oro\Bundle\EntityConfigBundle\Config\Id\ConfigIdInterface;
use Oro\Bundle\EntityConfigBundle\Config\Id\EntityConfigId;
use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMsFoodTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ms_foods', funct... |
<?php
namespace App\Http\Controllers;
use App\Exports\PostExport;
use App\Post;
// use PDF;
// use Barryvdh\DomPDF\PDF;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Maatwebsite\Excel\Facades\Excel;
use App\Imports\PostImport;
class PostController extends Co... |
<?php
/* partials/largeIntro.html.twig */
class __TwigTemplate_b6861cd2a204165527f6055f5aef9bea436fb0adb8ee60352fc840b7201e01f1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace Illuminate\Tests\Integration\Database\EloquentBelongsToManyTest;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Database\Eloquent\Relations\Pivot;
use Illuminate\Database\Schema\Blueprint;
use... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$a... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* fo... |
<?php
namespace shop\entities\shop\queries;
use paulzi\nestedsets\NestedSetsQueryTrait;
class CategoryQuery extends \yii\db\ActiveQuery
{
use NestedSetsQueryTrait;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.