text stringlengths 2 1.03M |
|---|
<?php
namespace Database\Factories;
use App\Models\Pessoa;
use Illuminate\Database\Eloquent\Factories\Factory;
class PessoaFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Pessoa::class;
/**
* Define the model's... |
<?php //echo view('dgac/headers'); ?>
<?php echo $headers['headersView']; ?>
<body>
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<?php echo view('... |
<?php
namespace App\Http\Controllers;
use App\Mahasiswa;
use Illuminate\Http\Request;
Use Alert;
use App\User;
class Mahasiswacontroller extends Controller
{
public function index()
{
$mahasiswa = Mahasiswa::with(['user'])->get(); // select * from nama_table
return view('mahasiswa.index', com... |
<?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 Laravel\Sanctum\HasApiTokens;
use Tymon\JWTAuth\Contracts\JWTSubject;
class User exten... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `record`.
*/
class m181022_030258_create_record_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('record', [
'id' => $this->primaryKey(),
'name'=>$this-... |
<!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, user-scalable=no, initial-scale=1, maximum-scale=1">
<title>App</title>
<link rel="icon" type="image/ico" ... |
<?= modules::run('Sections/Menu/index'); ?>
<div class="box-row">
<div class="box-cell">
<div class="box-inner col-md-10 col-centered" style="margin-top: 10px">
<div class="">
<div class="panel panel-default">
<div class="panel-heading p teal-900 back-imss">
... |
@extends('backend.layouts.master')
@section('title', 'Add city')
@section('page-header')
<i class="fa fa-plus"></i> Add City
@endsection
@section('content')
@include('backend.components.page_header', [
'fa' => 'fa fa-list',
'name' => 'City&Division List',
'route' => route('backend.area.cit... |
<?php
namespace Cotizador\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use Authorizes... |
<h4>
Thai
</h4>
<ol>
<li>
<h4>Pornanant Iamkhajornchai (2546) </h4> Use a teaching approach to integrate the
research process. <br>Content analysis and processing. Teaching writing skills in
essay style of debate types Suranaree University of Technology
students.<br>
<a href="file/pornanan_BIB618_FULL.pdf"... |
<?php
namespace App\Mail;
use App\Order;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class BudgetUploaded extends Mailable
{
use Queueable, SerializesModels;
public $order;
/**
* Create a new message... |
<?php // dev.OKTA_DOMAIN.d5ecc5 on Sat, 20 Feb 2021 20:06:59 +0000
return "\xD5\x86\xED\x9A\xAF\xE3_\x0Aet\xEAG\xDF\xED\xEEpp\xC1\xA1\xD6b\xF3-\x3E\x3Bc\xFA\x91d\x9ENu1\xFF\xAC\x91\x23x\xBF\x3F\xD8\xD3\xFD\x2A\x0EwH\x3E"; |
<?php
/**
* Plugin Name: Elementor
* Description: The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
* Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
* Author: Elementor.... |
<?php
namespace FilippoToso\Travelport\UniversalRecord;
class AgencyContactInfo
{
/**
* @var PhoneNumber $PhoneNumber
*/
protected $PhoneNumber = null;
/**
* @var typeRef $Key
*/
protected $Key = null;
/**
* @param PhoneNumber $PhoneNumber
* @param typeRef $Key
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDevisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('devis', function ... |
<?php
namespace GregKos\GreekStrings;
class GreekString
{
private string $string;
public function __construct(string $str = '')
{
$this->string = $str;
}
public function getString(): string
{
return $this->string;
}
public function setString(string $str): self
{
... |
<div class="top-bar top-bar-v1">
<div class="col-full">
<ul id="menu-top-bar-left" class="nav justify-content-center">
<li class="menu-item animate-dropdown">
<a title="TechMarket eCommerce - Always free delivery" href="contact-v1.html">TechMarket eCommerce
&#... |
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Hash;
use Tests\TestCase;
class AuthenticationTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function users... |
<?php namespace Utilities\Helpers;
use Illuminate\Support\Facades\Lang;
use Utilities\Libraries\PhpMailer\Card\MailCard;
use Utilities\Libraries\PhpMailer\Card\MailCardAuthCode;
use Utilities\Libraries\PhpMailer\Card\MailCardCovidInfo;
use Utilities\Libraries\PhpMailer\Card\MailCardFooterContactInfo;
use Utilities\Li... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Brand extends Model
{
public $table = 'ykg_brand';
} |
<?php
namespace Omnipay\Paysafecard;
use Omnipay\Tests\GatewayTestCase;
class RestGatewayTest extends GatewayTestCase
{
/** @var RestGateway */
public $gateway;
public function setUp()
{
parent::setUp();
$this->gateway = new RestGateway($this->getHttpClient(), $this->getHttpRequest... |
<?php
namespace App\Http\Requests;
use App\Rules\Citas\HoraRule;
use App\Rules\Citas\FestivoRule;
use App\Rules\Citas\HoraAreaRule;
use App\Rules\Citas\HoraUnicaRule;
use Illuminate\Foundation\Http\FormRequest;
class CitaStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make th... |
<?php
return
[
'name' => 'ModuleTemplate',
'version' => '1.0',
'date' => '2017-03-01',
'label' => 'Шаблоны модулей',
'section' =>
[
"bundle" => "Управление",
"iconSmall" => "app/ModuleTemplate/PageTemplate/Admin/images/icon_small.png",
"iconBig" => "app/ModuleTemplate/PageTemplate/Admin/images/icon... |
--TEST--
swoole_coroutine: use ob_* in nest co
--SKIPIF--
<?php require __DIR__ . '/../../include/skipif.inc'; ?>
--FILE--
<?php
require_once __DIR__ . '/../../include/bootstrap.php';
go(function () {
ob_start();
echo "2\n"; // [#1] yield
go(function () {
echo "1\n"; // [#2] output: 1
co::sl... |
<?php
/**
* Tracy (https://tracy.nette.org)
*
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
require __DIR__ . '/Tracy/Bar/IBarPanel.php';
require __DIR__ . '/Tracy/Bar/Bar.php';
require __DIR__ . '/Tracy/Bar/DefaultBarPanel.php';
require __DIR__ . '/Tracy/BlueScreen/BlueSc... |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Gendoria\CommandQueueBundle\Tests;
use Gendoria\CommandQueue\Command\CommandInterface;
use Gendoria\CommandQueue\Com... |
<?php
/**
* WP Events Manager Upgrade version 2.0.8 action
*
* @author ThimPress, leehld
* @package WP-Events-Manager/Action
* @version 2.1.7
*/
/**
* Prevent loading this file directly
*/
defined( 'ABSPATH' ) || exit;
/**
* Update event date meta
*/
$event_args = array(
'post_type' ... |
<?php
namespace JDare\ClankBundle\Topic;
use JDare\ClankBundle\Topic\TopicInterface;
use Ratchet\ConnectionInterface as Conn;
class AcmeTopic implements TopicInterface
{
/**
* This will receive any Subscription requests for this exact topic.
*
* @param \Ratchet\ConnectionInterface $conn
* @... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use App\Client;
use App\Ticket;
use App\JournalTicket;
use Carbon\Carbon;
use App\TypeTicket;
use Illuminate\Support\Facades\Auth;
class JournalTicketController extends Controller
{
public function addForm(){
$clients=Client:... |
<?php
namespace App\Listeners;
use App\Events\AcceptedRefund;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class BroadcastRefundRejected
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
... |
<?php
/* @WebProfiler/Collector/memory.html.twig */
class __TwigTemplate_64fe49aa6a800c63510c05fab14efddaef0d3679b3b3d3f352ab043ab33c24a6 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplat... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortc... |
@section('title','Dashboard')
<x-back-master>
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Dashboard</h1>
</div>
<div class="col-... |
<?php
namespace jinowom\Pay\Exceptions;
class GatewayException extends Exception
{
/**
* Bootstrap.
*
* @author jinowom <me@yansonga.cn>
*
* @param string $message
* @param array|string $raw
* @param int $code
*/
public function __construct($message, $raw... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.c... |
<?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
/**
* Collection.php
*
* PHP version 5.5+
*
* @module Database
* @package Xeeo\Services\Database\Mongo\Exceptions
* @category Services
* @author "Raul Geana" <geana.raul@gmail.com>
* @copyright 2014 Geana Raul Andrei
* @license Proprietary license.
*/
namespace Xeeo\Services\Database\Mongo\... |
<?php
use Carbon\Carbon;
use Illuminate\Database\Seeder;
class NoticiesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
for ($i = 0; $i < 500; $i++) {
DB::table('noticie... |
<?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
/**
* 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
declare(strict_types=1);
namespace Pest\Exceptions;
use InvalidArgumentException;
use NunoMaduro\Collision\Contracts\RenderlessEditor;
use NunoMaduro\Collision\Contracts\RenderlessTrace;
use Symfony\Component\Console\Exception\ExceptionInterface;
/**
* @internal
*/
final class AfterAllAlreadyExist extends I... |
<?php
/**
* Maze.core
*
* @license http://opensource.org/licenses/MIT MIT
*/
/**
* Core_Model_ValueObject_ModuleTest
*
* @license http://opensource.org/licenses/MIT MIT
* @see ZendX_View_Autoescape
*/
class Core_Model_ValueObject_ModuleTest extends PHPUnit_Framework_TestCase
{
/**
* sample unconfig... |
<?php
/*
* Copyright 2015 Alexey Maslov <alexey.y.maslov@gmail.com>
*
* 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... |
<?php
class AdminController {
// The admin index page
public static function index () {
return view('admin.index');
}
} |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\search\LoanCarSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', '车辆出库----监管车辆列表');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="{{ asset('css/elegant-icon... |
<?php
namespace Tests\Feature;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class RegisterApiTest extends TestCase
{
use RefreshDatabase;
/**
* A basic feature test example.
*
* @return void
*/
public... |
<?php
namespace RazonYang\Yii2\Setting\Tests;
use RazonYang\Yii2\Setting\Manager;
class TestManager extends Manager
{
public $settings = [];
protected function load(): array
{
return $this->settings;
}
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="col-md-12">
<div class="card">
<div class="card-header">Ticket</div>
<div class="card-body">
<div class="table-responsive">
<table id="re... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNetworkTypeToPhotoCategories extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('photo_categories', function (Blueprint $ta... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use App\Models\Size;
use App\Models\Employee;
class SiteController extends Controller
{
public function create()
{
//URL
$apiURL = 'https://jsonplaceholder.typicode.com/posts';
//... |
<?php
namespace Kunstmaan\FormBundle\Entity\FormSubmissionFieldTypes;
use Doctrine\ORM\Mapping as ORM;
use Kunstmaan\FormBundle\Entity\FormSubmissionField;
use Kunstmaan\FormBundle\Form\ChoiceFormSubmissionType;
/**
* The ChoiceFormSubmissionField can be used to store one or more selected choices to a FormSubmissio... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Polyfill\Iconv;
/**
* iconv implementation in pure PHP, UTF-8 ... |
<?php
declare(strict_types=1);
return function () {
// Bind route models and constrains
Route::pattern('page', '[a-zA-Z0-9-_]+');
Route::model('page', config('rinvex.pages.models.page'));
}; |
<?php
if (!isset($GLOBALS['basePath'])) {
header('HTTP/1.1 403 Forbidden');
exit;
}
class GuiUtils {
static $languages = [
'AB' => ['Abkhazian'],
'AA' => ['Afar'],
'AF' => ['Afrikaans'],
'SQ' => ['Albanian'],
'AM' => ['Amharic'],
'AR' => ['Arabic'],
'HY' => ['Armenian']... |
<!DOCTYPE html>
<html>
<head>
<?php require_once(APPPATH .'views/include/include.php'); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.min.css"/>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2P... |
<?php
/*
* Helper functions for building a DataTables server-side processing SQL query
*
* The static functions in this class are just helper functions to help build
* the SQL used in the DataTables demo server-side processing scripts. These
* functions obviously do not represent all that can be done with serve... |
<div id='sidebar-box'>
<ul class="nav nav-tabs" id="myTabs" role="tablist">
<li role="presentation" class="active"><a href="#terpopuler" id="terpopuler-tab" role="tab" data-toggle="tab" aria-controls="terpopuler" aria-expanded="true">Terpopuler</a></li>
<li role="presenta... |
@extends('layouts.app')
@section('content')
<div class='jumbotron text-center'>
<h1>Welcome to Laravel</h1>
<p> This is the larave application from the "Laravel From Scratch Youtube Series". </p>
<p><a class='btn btn-primary btn-lg' href='/login' role='button'>Login</a>
<a class=... |
<?php
namespace EJ\PivotChart;
class Filter {
public function fieldName ($value) {
$this -> fieldName = $value;
return $this;
}
public function filterItems ($value) {
$this -> filterItems = $value;
return $this;
}
}
?> |
<?php
namespace Interpro\ImageAggr\Contracts\Settings\Enum;
class Position
{
const TOP_LEFT = 'top-left';
const TOP = 'top';
const TOP_RIGHT = 'top-right';
const LEFT = 'left';
const CENTER = 'center';
const RIGHT = 'right';
const BOTTOM_LEFT = 'bottom-left';
const BOTTOM = 'bottom';
... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')->insert([
'name' => 'customer',
'email' => 'mr@a... |
<?= $this->extend('template/layout')?>
<?= $this->section('content')?>
<?php $session = \Config\Services::session(); ?>
<?= $this->include('bars/navbar')?>
<div class="container my-5">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php
lako::get('objects')->add_config('repair_types',array(
'table' => 'repair_types',
'name' => 'repair_types',
'pkey' => 'id',
'fields' => [],
'relations' => []
)); |
<?php
namespace GitList\Controller;
use Silex\ControllerProviderInterface;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
class CommitController implements ControllerProviderInterface
{
public function connect(Application $app)
{
$route = $app['controllers_factory'];
$r... |
<?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
return [
'title' => 'Connexion à l\'administration',
'email' => 'Adresse email',
'password' => 'Mot de passe',
'submit' => 'Connexion'
]; |
<?php
/**
* This file is part of Bic Engine package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Bic\Contracts\Audio\Stream;
interface SourceInterface
{
/**
* @return int
*/
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="#" type="image/x-icon">
<title>Mr Shasha</title>
<!-- Bootstrap -->
{!! Html::style( asset('assets/css/bootstrap.min.css')) !!}
{!! Html::style( asset... |
@extends("layouts.client")
@section("content")
<div class="banner">
<div class="breadcrumbs">
<div class="container">
<ul>
<li><a href="{{route("index")}}">Trang chủ</a></li>
<li><a href="{{route("blogs")}}">Tin tức</a></li>
... |
@extends('admin.v_template_admin');
@section('contentadmin')
<!-- general form elements -->
<div class="container-fluid">
<div class="box box-primary" style="margin-top: 30px;">
<div class="box-header with-border">
<h3 class="box-title">Insert Data Product</h3>
</div>
<!-- /.box-header -->
<!-- form start -... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFbortituloTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fbortitulo', function(Blueprint $table)
{
$table->integer('bti_id', true... |
<?php
require_once '../EJ/AutoLoad.php';
?>
<div class="cols-sample-area">
<?php
$diagram=new EJ\Diagram("diagramcuircuit");
$nodes= array(
addElement("node1", 200, 175, "junction", 10, 10),
addElement("node2",200, 100, "junction", 10, 10),
addElement("node3",300, 100, "junction... |
<div class="department__top__tab-content tab-content mb-5" id="nav-tabContent">
<div class="tab-pane fade show {{ $group == "emti" ? "active" : "" }}" id="list-emti" role="tabpanel" aria-labelledby="list-emti-list">
<div class="department__top__tab-content__item d-flex button-subgroup-trigger-parent {{ $sub... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTeamsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('teams', function (Blueprint $table) {
$table... |
<?php
namespace Psalm\Plugin\EventHandler\Event;
use PhpParser\Node;
use Psalm\Codebase;
use Psalm\FileManipulation;
use Psalm\StatementsSource;
use Psalm\Storage\ClassLikeStorage;
class AfterClassLikeAnalysisEvent
{
/**
* @var Node\Stmt\ClassLike
*/
private $stmt;
/**
* @var ClassLikeStor... |
<?php
namespace App\Http\Middleware;
use Closure;
class AdminMiddlewere
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
//!auth(... |
<?php
namespace Home\Controller;
use Common\Controller\BaseController;
class SearchController extends BaseController {
/**
* 搜索路线
* begin :起点站ID
* end :终点站ID
* time :时间
* page :分页
* page_size :分页
*/
public function runs_search(){
if (IS_POST) {
$BeginStationID = I('begin');
$EndStationID =... |
<?php
/**
* @package ITPrism
* @subpackage Files\Interfaces
* @author Todor Iliev
* @copyright Copyright (C) 2014 Todor Iliev <todor@itprism.com>. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('JPATH_PLATFORM') or die;
/**
* An inter... |
<?php
ini_set("display_errors",1);
$this->load->view('menu/header');
$this->load->view($page);
$this->load->view('menu/footer'); |
<?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
if (empty($_SESSION['username'])) {
return redirect('auth/');
}
function rp($value){
return 'Rp.'.number_format($value, 2, ',', '.');
}
function tgl($value){
if($value === '0000-00-00'){
return '-';
}else{
return date('d F Y', strtotime($value));
}
}
$notif = $this->db->get_where('pem... |
@props([
'name',
'type' => 'white'
])
<div @class([
"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",
"bg-gray-50" => $type == 'gray',
"bg-white" => $type == 'white',
])>
<dt class="text-sm font-medium text-gray-500">{{ $name }}</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-s... |
<?php
namespace UGComponents\IO\Request;
use PHPUnit\Framework\TestCase;
use UGComponents\Data\Registry;
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-07-28 at 11:36:34.
*/
class IO_Request_ContentTrait_Test extends TestCase
{
/**
* @var ContentTrait
*/
protected $object;
/**
* Sets up the f... |
<?php
/**
* Timewarp
*
* @author Warrick Bayman <me@warrickbayman.co.za>
* @copyright Copyright (c) THEPUBLICGOOD (Pty) Ltd.
* @license MIT License http://opensource.org/licenses/MIT
*
*/
namespace TPG\Timewarp\Support\Traits;
use TPG\Timewarp\Properties\Property;
/**
* Trait MultipleValues
*
* @pack... |
<?php
namespace App\Exports;
use App\Models\Product;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\FromQuery;
class ProductsExport implements FromQuery
{
use Exportable;
/**
* @return \Illuminate\Support\Collection
*/
public function query()
{
return Prod... |
<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY 杭州博也网络科技有限公司
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2016, http://www.itboye.com. All Rights... |
<?php
namespace AppBundle\Repository;
/**
* UserWalletRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class UserWalletRepository extends \Doctrine\ORM\EntityRepository
{
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
Use App\Models\Product;
Use App\Models\Category;
Use App\Models\Subcategory;
Use App\Models\Slider;
class FrontProductListController extends Controller
{
public function index(){
$products = Product::latest()->limit(6)->get();
... |
<?php
namespace Kirby\Cms;
class PageBlueprint extends Blueprint
{
/**
* Creates a new page blueprint object
* with the given props
*
* @param array $props
*/
public function __construct(array $props)
{
parent::__construct($props);
// normalize all available page... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Pegawai_model extends CI_Model
{
function get_all()
{
return $this->db->get('pegawai_guru')->result_array();
}
function get_pegawai($pg)
{
return $this->db->query("SELECT * from pegawai_guru where Nama='" .... |
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
function eme_new_location() {
$location = array(
'location_name' => '',
'location_address1' => '',
'location_address2' => '',
'location_city' => '',
'location_state' => '',
'location_zip' => '',
'location_country' => '',
... |
<?php
namespace Home\Controller;
use Think\Controller;
class LoginController extends Controller {
public function index(){
if($_GET){
$user = M('users');
$pass = I('password');
$mcode = I('code');
$verify = new \Think\Verify();
if($verify->check($mcode,''... |
<?php
function addPrimaryId($word, $pdo)
{
$fetched = fetch($pdo, "SELECT * FROM words WHERE word=?", array($word));
if ($fetched) {
return $fetched["id"];
}
fetch($pdo, "INSERT INTO words(word) VALUES(?)", array($word));
return $pdo->lastInsertId();
}
function addRelation($wordId1, $word... |
<?php
namespace Modules\Seller\Http\Controllers\Product;
use Illuminate\Routing\Controller;
use Modules\Product\Http\Request\CreateProductRequest;
use Modules\Product\Http\Request\UpdateProductRequest;
use Modules\Seller\Entities\Seller;
use Modules\Seller\Service\SellerService;
class SellerProductController extends... |
<?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\Crypt\Padding;
use function str_split... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Location extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'user_id',
'address',
'detail_a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.