text stringlengths 2 1.03M |
|---|
<div class="table-responsive">
<table class="table table-striped table-hover">
<tr class="titles">
<td><?php echo $this->lang->line('general_word_date'); ?></td>
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_aut... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto
namespace Google\Cloud\Compute\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A request message for Instances.Insert. Se... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\Exercise */
$this->title = $model->id;
?>
<div class="exercise-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn... |
<?php
class Kwf_Controller_Action_User_UserController extends Kwf_Controller_Action_Auto_Form
{
protected $_permissions = array('save', 'add');
private $_permissionFieldset;
public function preDispatch()
{
$regUserForm = Kwf_Registry::get('config')->user->form;
if (is_string($regUserFo... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSamplesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('samples', funct... |
<?php
return [
'locale' => 'ko',
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| fr... |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;
use common\components\ConnectionSettings;
use common\models\Consultant;
use frontend\models\EmailenquirySearch;
use common\models\Emailenquiry;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\EmailenquirySearch */
/* @var $... |
@extends('layouts.app')
@section('content')
<div class="container">
<form method="post" action="{{route('save')}}">
{{ csrf_field() }}
<h1>Add new Product</h1>
<div class="form-group">
<label > Name</label>
<input type="text" name="name" class="form-control">
</div>
<div class="form-group">
<lab... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Samsung;
use JMS\Serializer\Annotation\ExclusionPolic... |
<?php return '<?php
namespace Modules\\ModuleName\\Providers;
use Illuminate\\Support\\ServiceProvider;
use Illuminate\\Database\\Eloquent\\Factory;
class ModuleNameServiceProvider extends ServiceProvider
{
/**
* Boot the application events.
*
* @return void
*/
public function boot()
... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dingtalk\Vcontact_1_0\Models;
use AlibabaCloud\Tea\Model;
class GetUserResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var GetUserResponseBody
*/
public $body;
pro... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Products_model extends CI_Model {
private $_table_name = "products";
public function get()
{
return $this->db->get($this->_table_name)->result();
}
public function insert($form_data)
{
$this->db->insert($this->_table_name, $form_d... |
<?php
/**
* This file is part of the Jacobine package.
*
* (c) Andreas Grunwald <andygrunwald@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Jacobine\Tests\Consumer\Crawler;
use Jacobine\Tests\Consumer\Consu... |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___... |
<?php
namespace App\Http\Controllers;
use App\Permissions;
use App\Staffs;
use App\User;
use Illuminate\Http\Request;
class Permission extends Controller
{
//
public function get_permissions($id){
$user_permission = User::find($id)->permissions;
$allow_permissions = [];
foreach($user... |
<?php
if( !defined('ToplistX') ) die("Access denied");
$categories =& $DB->FetchAll('SELECT `name`,`category_id` FROM `tlx_categories` ORDER BY `name`');
if( !isset($_REQUEST['build_order']) )
{
$_REQUEST['build_order'] = $DB->Count('SELECT MAX(`build_order`) FROM `tlx_pages`') + 1;
}
include_once('includes/head... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitdcf22f9bc9c2db97c8e2b317a75ce454::getLoader(); |
<?php if (isset($buttons) && is_array($buttons)): ?>
<?php
// What type of buttons?
if (isset($button_type) && $button_type == 'primary'):
$btn_class = 'btn';
elseif (isset($button_type) && $button_type == 'secondary'):
$btn_class = 'btn btn-xs';
else:
// Default to primary
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class GlobalModel extends CI_Model {
public function __construct()
{
parent::__construct();
}
private $table_prefix = "";
public function get($table){
$this->load->database();
$result = $this->db->get($this->table_prefix.""... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Model;
use Faker\Generator as Faker;
$factory->define(\App\Product::class, function (Faker $faker) {
return [
'id' => $faker->randomNumber(),
'Image' => 'products/Image/img.jpg',
'Name'=>$faker->name,
'Catego... |
<?php
require_once "../app/Libraries/koolreport/core/autoload.php";
use \koolreport\processes\Group;
use \koolreport\processes\ColumnMeta;
use \koolreport\processes\DateTimeFormat;
use \koolreport\processes\CopyColumn;
use \koolreport\clients\Bootstrap;
class InformeCaudales extends \koolreport\KoolReport
{
pr... |
<?php
/**
* Smarty shared plugin
* @package Smarty
* @subpackage PluginsShared
*/
/**
* escape_special_chars common function
*
* Function: smarty_function_escape_special_chars<br>
* Purpose: used by other smarty functions to escape
* special chars except for already escaped ones
* @author Monte... |
<div class="contentbox">
<table cellspacing="2" cellpadding="5" width="100%">
<tr>
<th colspan="8" align="left">广告标签</th>
</tr>
<tr>
<th><label><input type="checkbox" class="quxuanall" value="checkbox" />选择</label></th>
<th>描述</th>
<th>备注</th>
<th>广告位大小</th>
<th>图片数</th>
<th>状态</th... |
<?php
class ModelExtensionFraudIp extends Model {
public function check($order_info) {
$this->load->model('account/customer');
$status = false;
if ($order_info['customer_id']) {
$results = $this->model_account_customer->getIps($order_info['customer_id']);
foreach (... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conver... |
<?php
global $noctuce_crm_path;
require_once($noctuce_crm_path . "Models/Entreprise/Noctuce_CRM_Entreprise.php");
class Noctuce_CRM_EntrepriseManager
{
private $_table_name;
private $_noctuce_CRM_PersonManager;
private $_list;
function __construct($noctuce_CRM_PersonManager)
{
if(gettyp... |
<?php
// slipshod template generator.
//
// flag:
// 0 => generate header
// 1 => generate source
//
// --filter:
// - prefix: don't show matched keywords
// e.g ) -cred
// will ignore codes which have `cred` keyword
// default: show matched keywords only
// e.g ) cred
... |
<?php
return [
"index" => "Indice de :resource",
"create" => "Creacion de :resource",
"edit" => "Modificacion de :resource"
]; |
<?php
namespace app\models;
use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
class ArticleTextProperty extends ActiveRecord
{
public function behaviors(){
return [
[
'class' => TimestampBehavior::className(),
'createdAtAttrib... |
<?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = strip_tags(htmlspecialchars(... |
<?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
| ... |
<div id="comprobantemodal" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h... |
<?php
require("link.php");
include('datadisplay.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!--contain formart links-->
<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 n... |
<div class="container mx-auto py-4 flex">
<router-link to="/" exact class="flex items-center">
<i data-feather="home" class="mr-2"></i>Home
</router-link>
<router-link to="/resume" exact class="flex items-center pl-5">
<i data-feather="award" class="mr-2"></i>Resume
</router-link>
... |
<?php
return [
// 默认输出类型
'default_return_type' => 'json',
//
// 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle' => '\\app\\api\\exception\\Http',
]; |
<?php
$this->title = 'Create';
//$this->registerJsFile('/js/createEvent.js', ['position' => \yii\web\View::POS_END]);
$this->params['breadcrumbs'][] = ['label' => 'Unit', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$region_id = Yii::$app->user->identity->region_id;
?>
<div ng-controller="Creat... |
<?php
namespace App\Models;
use App\Models\Traits\CanBeDefault;
use Illuminate\Database\Eloquent\Model;
class PaymentMethod extends Model
{
use CanBeDefault;
protected $guarded = [];
public function user()
{
return $this->belongsTo(User::class);
}
} |
<?php
namespace App\Http\Controllers;
use App\Models\Book_authors;
use App\Models\Books;
use App\Models\Rl_category_books;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
class AuthorController extends Controller
{
public $lang;
public function __construct()
{
$this->lang=Con... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('videos', functio... |
<?php
/**
* The template for displaying search results pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package Lex_lessons_theme
*/
get_header();
?>
<main id="primary" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
... |
<?php
namespace Webkul\Customer\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 Auth... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/type-resolver/src', $vendorDir . '/phpdocumentor/reflec... |
@extends('layouts.app')
@section('content')
<h1>Clients</h1>
<p>This is Clients This is test my max this th sample content</p>
@endsection |
<?php
return [
'choose_folder' => 'आप किस फ़ोल्डर में अपलोड करना चाहते हैं?',
'upload' => 'जोड़ें Addmages | अपलोड İmages | एक तस्वीर लगाओ',
'choose_files' => 'आप किन फ़ाइलों का उपयोग करना चाहेंगे?',
'no_files_selected' => 'कोई फ़ाइल चयनित नहीं है।',
'no_uploads' => 'कोई फ़ाइल अपलोड नहीं की गई।',
... |
@extends('master')
@section('css')
</style>
@endsection
@section('contenido')
@if(Session::has('message'))
<div class="alert alert-success" role="alert" style="width: 100%; margin-top: 10px; ">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></butt... |
<section id="section-video" class="page-section min-vh-100 section dark p-0 m-0 border-0 d-flex overflow-hidden">
<div class="container-fluid center">
<div class="slider-caption slider-caption-center">
<i class="i-plain i-xlarge icon-diamond float-none mx-auto mb-4" data-animate="fadeInDown"></... |
<?php
namespace app\modules\admin\models;
use Yii;
use app\modules\admin\models\Orderitems;
/**
* This is the model class for table "ordercart".
*
* @property int $id
* @property int|null $created_at
* @property int|null $qty
* @property int|null $sum
* @property string|null $name
* @property int|null $status... |
@extends('layouts.app')
@include('funciones.traductor')
@section('extra_css')
<style>
.titulos{
color: #20895e !important;
font-weight: bold !important;
}
</style>
@endsection
@section('content')
<div class="container">
<div class="row">
<div ... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Module;
use App\MultipleChoice;
use App\Exam;
use App\Question;
use App\Helpers\ExamRepository;
use App\Helpers\FinalExamViewer;
use App\Activity;
use App\Http\Requests\CreateFinalExamRequest;
class... |
<?php
/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load your controllers and models. This is use... |
<?php
namespace frontend\controllers\serviceObject;
use backend\controllers\BackendModelController;
use common\helpers\ArrayHelper;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
/**
* Контроллер для формы "Комплексы"
*/
class ComplexController extends BackendModelController
{
/**
* @var strin... |
<?php
namespace AppBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
//vul aan als je andere invoerveld-typen wilt gebruiken in je formulier
use S... |
<?php namespace ProcessWire;
//function unzip($file) {
// $info = (object)pathinfo($file);
// $zip = new \ZipArchive();
// $zip->open($file);
//
// $dst = $info->dirname;
// for($i = 0; $i < $zip->numFiles; $i++) {
// $name = $zip->getNameIndex($i);
// if(strpos($name, '..') !== false) continue;
// $zip->... |
<?php
class ControllerLocalisationLengthClass extends Controller {
private $error = array();
public function index() {
$this->load->language('localisation/length_class');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('localisation/length_class');
$this->getList();
}... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\models\User;
use Hash;
use Session;
class LoginController extends Controller
{
public function index()
{
return view('login.login');
}
public function login(Request $request)
{
... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;... |
<?php
Kirby::plugin('proton-systems/kirby-asset-hash',
[
'options' => [
'usephp' => true
],
]); |
@extends('front'.theme_name().'layout.master')
@section('style_link')
<link rel="stylesheet" href="{{asset('front/panel/css/AdminLTE.css')}}">
<link rel="stylesheet" href="{{asset('front/panel/css/rtl.css')}}">
@endsection
@section('style')
<style>
main{
position: relative;
}
... |
<?php
namespace AwesomeBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Message
*
* @ORM\Table(name="messages")
* @ORM\Entity(repositoryClass="AwesomeBundle\Repository\MessageRepository")
*/
class Message
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @... |
--TEST--
Test token_get_all() function : usage variations - with exception keywords
--SKIPIF--
<?php if (!extension_loaded("tokenizer")) print "skip"; ?>
--FILE--
<?php
/* Prototype : array token_get_all(string $source)
* Description: splits the given source into an array of PHP languange tokens
* Source code: ext/t... |
<?php
/*
Cakephp 2.x User Management Premium Version (a product of Ektanjali Softwares Pvt Ltd)
Website- http://ektanjali.com
Plugin Demo- http://umpremium.ektanjali.com
Author- Chetan Varshney (The Director of Ektanjali Softwares Pvt Ltd)
Plugin Copyright No- 11498/2012-CO/L
UMPremium is a copyrighted work of authors... |
<?php
namespace TinyFramework\Validation\Rule;
use TinyFramework\Http\UploadedFile;
class RequiredRule extends RuleAwesome
{
public function getName(): string
{
return 'required';
}
public function validate(array $attributes, string $name, ...$parameters): array|bool|null
{
$valu... |
@extends('backend.layouts.app')
@section('title') {{ 'Bootstrap | '.env('APP_NAME') }} @endsection
@section('breadcrumbs')
@include('backend.layouts.partials.breadcrumbs',['current' => 'Bootstrap'])
@endsection
@push('after-css')
<!-- This Page CSS -->
<link rel="stylesheet" type="text/css" href="{{asset(... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Register extends CI_Controller {
function index(){
// tampilkan form register
$this->load->view('form_register');
}
function simpan(){
if($this->input->post('btn_simpan')){
// simpan ke databas... |
<table class="table table-condensed ">
<tr class="bg-gray">
<th>Nama</th>
<th>Opsi</th>
</tr>
<?php
$rekomendasi_dosens = $this->disertasi->read_rekomendasi_penguji_terbuka();
foreach ($rekomendasi_dosens as $rekomendasi_dosen) {
?>
<tr>
<td><?php echo $rekomendasi_dosen['nama'] ?><br/><b><?php ech... |
<?php
/**
* HUBzero CMS
*
* Copyright 2005-2015 HUBzero Foundation, LLC.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRoleId extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Bluepri... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class StaticPagesController extends Controller
{
public function home()
{
return view('static_pages/home');;
}
public function help()
{
return view('static_pages/help');
}
public function about()
{
... |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
* SuiteCRM... |
<?php if(!defined('BASEPATH'))exit('No direct script access allowed');
class AdminC extends CI_Controller
{
public function __construct()
{
parent::__construct();
no_access_admin();
$this->load->model('PencariM');
$this->load->model('UniversitasM');
$this->load->model('FakultasM');
$this->load->... |
<?php
/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var yii\gii\generators\form\Generator $generator
*/
echo $form->field($generator, 'viewName');
echo $form->field($generator, 'modelClass');
echo $form->field($generator, 'scenarioName');
echo $form->field($generator, 'viewPath');
echo $form-... |
@extends('layouts.petugas')
@section('content')
<div class="row">
<div class="container">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">Absen Siswa
<div class="panel-title pull-right"><a href="{{ url()->previous() }}">Kembali</a>
</div>
</div>
<di... |
<?php
/* vim: set noexpandtab sw=2 ts=2 sts=2: */
/**
* Reports controller handling reports creation and rendering
*
* phpMyAdmin Error reporting server
* Copyright (c) phpMyAdmin project (http://www.phpmyadmin.net)
*
* Licensed under The MIT License
* For full copyright and license information, please see the L... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* System / Cache Management / Cache type "Blocks HTML output"
*
* @todo utilize the class for all manipulations with the cache type
*/
namespace Magento\Framework\App\Cache\Type;
class Block extends \Magent... |
<!-- Modal Cadastro de produtos -->
<div class="modal fade" id="produtosCadastro" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header" >... |
<?php
/**
* Created by PhpStorm.
* User: llqhz
* Date: 18-12-16
* Time: 上午11:34
*/
namespace frontend\controllers;
use yii\web\Controller;
use yii\web\Response;
use yii\web\UploadedFile;
class DropzoneController extends Controller
{
// 取消上传验证
public $enableCsrfValidation = false;
public function ... |
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 2 | Log in</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="styleshee... |
<?php
//000000000000
exit();?>
1603962584 |
<?php namespace Config;
use CodeIgniter\Config\BaseConfig;
class App extends BaseConfig
{
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this w... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\models\LelangUangJaminan;
use backend\models\LelangHeader;
use backend\models\LelangStatusPeserta;
/* @var $this yii\web\View */
/* @var $model backend\models\LelangUangJaminan */
/* @var $form yii\widgets\ActiveForm */
$max_id = LelangUangJaminan::fi... |
<?php
use App\Imports\RegionImport;
use App\Models\Province;
use App\Models\Regency;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;
use Maatwebsite\Excel\Facades\Excel;
class CreatePlacesTable exten... |
<?php
namespace App\Templates;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use Maatwebsite\Excel\Concerns\WithEvents;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithTitle;
use Maatwebsite\Excel\Events\AfterSheet;
class BlogImportDataLangua... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Config extends Model
{
protected $table = 'config';
protected $fillable = ['socket1', 'socket2', 'socket3', 'socket4', 'socket5', 'socket6'];
} |
<?php
/**
* Class ParagonIE_Sodium_Core_X25519
*/
abstract class ParagonIE_Sodium_Core_X25519 extends ParagonIE_Sodium_Core_Curve25519
{
/**
* Alters the objects passed to this method in place.
*
* @internal You should not use this directly from another application
*
* @param ParagonIE_S... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Penyakit;
use App\Gejala;
class DashboardController extends Controller
{
//
public function index(){
$data['penyakit'] = Penyakit::all();
$data['gejala'] = Gejala::all();
... |
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/**
* A basic functional test example.
*
* @return void
*/
public function testBasic... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace Enbit\eBaySDK\Test\Metadata\Types;
use Enbit\eBaySDK\Metadata\Types\AutomotivePartsCompatibilityPolicy... |
<?php
require_once('includes/bootstrap.inc.php');
?>
<link href='https://fonts.googleapis.com/css?family=Baloo' rel='stylesheet'>
<meta http-equiv="refresh" content="180">
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="language" content="Dutch" />
<meta name="keywords" content="cha... |
@extends('backEnd.layouts.app', [
'class' => '',
'elementActive' => 'cabride'
])
@section('content')
<div class="content">
<div class="card shadow">
{!! Form::open(['url' => 'cab-ride/filter','method' => 'get','enctype' => 'multipart/form-data']) !!}
<div class="row p-3">
<div class="co... |
<?php
/**
* Copyright 2018 Google Inc. 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/LICENSE-2.0
*
* Unless required by... |
<?php
namespace App;
use Doctrine\Instantiator\Exception\InvalidArgumentException;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Collection;
class Order extends Model
{
const OPEN = 'open';
const CLOSED = 'closed';
const CREATED = ... |
<?php
namespace App\Controllers;
use Core\Controller;
use App\Models\Post;
use Core\View;
class Posts extends Controller
{
public function indexAction()
{
$posts = Post::getAll();
View::renderTemplate('Posts/index.html.twig', [
'posts' => $posts
]);
}
public functi... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Payment extends Model
{
public function order()
{
return $this->hasOne('App\Order');
}
public function invoice()
{
return $this->hasOne('App\Invoice');
}
//
} |
<?php
namespace Grapesc\GrapeFluid\Module\Article;
use Grapesc\GrapeFluid\BaseModule;
use Nette\Configurator;
class ArticleModule extends BaseModule
{
protected $parents = [
"AdminModule"
];
/** {@inheritdoc} */
protected function registerConfig(Configurator $configurator)
{
parent::registerConfig($conf... |
<?php
namespace App\Http\Controllers;
use App\Instrument;
use App\Lesson;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\User;
use App\Student;
use App\InstructorAvailability;
use Carbon\Carbon;
use App\Room;
class LessonsController extends Controller
{
private $data;
/**
* Di... |
<?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 =... |
<form action="" method="post">
<div class="mb-3 row">
<label for="" class="col-sm-2 col-form-label">*Category Name</label>
<div class="col-sm-8">
<input type="text" class="form-control form-control-sm" required name="category">
</div>
</div>
<div class="mb-3 row">
<label for="" class="col-sm... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Unit extends Model
{
use RecordLog;
protected $fillable = ['unit', 'description'];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = ['created_at','updated_at'];
... |
<?php
namespace App\Models\Reserved;
use App\Core\DataTable;
class Search extends DataTable
{
public function totalCount()
{
return Reserved::count();
}
public function filteredCount()
{
$query = $this->constructQuery();
return $query->count();
}
public function ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.