text stringlengths 2 1.03M |
|---|
<?php
/**
* This is the PHP base ACL configuration file.
*
* Use it to configure access control of your CakePHP application.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For ful... |
<?php
namespace App\Models;
use App\Traits\Commentable;
use App\Traits\Detailable;
use App\Traits\EnumValue;
use App\Traits\FavourableTrait;
use App\Traits\Imageable;
use App\Traits\Shareable;
use App\Traits\Taggable;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relation... |
<?php
namespace Alidns\Request\V20150109;
/**
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
*
* Request of DescribeDnsProductInstance
*
* @method string getInstanceId()
* @method string getUserClientIp()
* @method string getLang()
*/
class DescribeDnsProductInstanceRequest extends \RpcAcs... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddRememberTokenToAdmins extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('admins', f... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
@include('admin.sidebar')
<div class="col-md-9">
<div class="card">
<div class="card-header">Institucione {{ $institucione->id }}</div>
<div... |
@include('theme.admin.navbar')
<br><br>
<section class="hero-section spad">
<div class="container-fluid">
<div class="row">
<div class="col-xl-10 offset-xl-1">
<div class="row">
<div class="col-lg-6">
... |
@extends('layouts.app')
@section('content')
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div... |
<?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
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
use HasFactory;
public function products()
{
return $this->belongsToMany(Product::class);
}
} |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
protected $redirectTo = '/';
public function __construct()
{
$this->middleware('guest')->e... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your ap... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\PodServiscatr */
$this->title = 'Create Pod Serviscatr';
$this->params['breadcrumbs'][] = ['label' => 'Pod Serviscatrs', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pod-serviscatr-create">
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kikimr/public/api/protos/ydb_coordination.proto
namespace Ydb\Coordination;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
**
* Describes an owner or a waiter of t... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
class Bank extends Model
{
use LogsActivity;
public function company()
{
return $this->belongsTo('App\Company');
}
public function employees()
{
return $this->has... |
<!DOCTYPE html>
<!--
Template Name: Miraculous - Online Music Store Html Template
Version: 1.0.0
Author: Kamleshyadav
Website:
Purchase:
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-... |
<?php
/**
* アプリ全体で使用する便利関数
*/
class AppUtil
{
/**
* SJISファイルをUTF8に変換してファイルをオープンする
* 使用後は fclose() でクローズすること
*/
public static function fopenConvertUtf8($csvFilePath)
{
$buffer = mb_convert_encoding(file_get_contents($csvFilePath), "UTF-8", "sjis-win");
$fp = tmpfile();
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Feature extends Model
{
protected $table='course_features';
protected $fillable=['info', 'ft_icon', 'course_id'];
public $timestamps =false;
public function course()
{
return $this->belongsTo(Course::class, 'course_id');
... |
<?php
/**
* module.blastchatc.php
* @package BlastChat Client
* @copyright 2004-2007 BlastChat
* @license Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. http://creativecommons.org/licenses/by-nc-sa/3.0/us/
* @license Permissions beyond the scope of this license may be available at htt... |
<?php
declare(strict_types=1);
namespace Module\Catering\Service\Api;
class CustomerController extends Controller {
public function indexAction() {
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class content extends Model
{
protected $table = 'content';
public $timestamps = false;
public static function returnErrorAsObject($message){
$message = ['status'=>'error','message'=>$message];
header_remove();
header("... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Substanciaativa;
class SubstanciaativaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Req... |
<?php
/**
* @category Horde
* @package Horde_Rdo
*/
/**
* Horde_Rdo (Rampage Data Objects) namespace - holds constants and
* global Rdo functions.
*
* @category Horde
* @package Horde_Rdo
*/
class Horde_Rdo {
/**
* Find mode for returning just the first matching result. The
* backend will limit... |
@extends('master')
@section("content")
<div class="container custom-login">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<form action="login" method="POST">
<div class="form-group">
@csrf
<label for="exampleInputEmail1">Email address</lab... |
<?php
use Illuminate\Database\Seeder;
class CategoriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
for ($i=0; $i < 4 ; $i++) {
if ($i == 1) {
$name = 'Makanan';
}elseif($i == 2){
$name =... |
@extends('layouts.app')
@section('page_title', __('lang.offers'))
@section('content')
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box">
<div class="box-header with-border">
@include('flash::message')
... |
<?php
/* Connect to mySQL database */
$host_name = "";
$database = "";
$user_name = "";
$password = "";
//$connect = mysqli_connect($host_name, $user_name, $password, $database);
$conn = new mysqli($host_name, $user_name, $password, $dbname);
if(mysqli_connect_errno()) {
alert('V... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond t... |
<?php
/**
* Copyright 2017 DataStax, 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 agr... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\Crm\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetTssClientRequest StructType
* @subpackage Structs
*/
class GetTssClientRequest extends AbstractStructBase
{
/**
* The Midoco... |
<?php
/**
* PHPExcel_Worksheet_ColumnCellIterator
*
* Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... |
<?php
class PasswordHasher
{
public static function Hash($password, $withPrefix = true)
{
if ($withPrefix)
$hashed_password = sha1(HASH_PREFIX . $password);
else
$hashed_password = sha1($password);
return $hashed_password;
}
}
?> |
<html lang="en">
<head>
<meta charset="utf-8">
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/6.4.0/video-js.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/6.4.0/video.min.js"></... |
<?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 RouteSe... |
@extends('layouts.main')
@section('tampilan')
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>Riwayat Perjalanan</h1>
<div class="section-header-button">
<a href="/tambah" class="btn btn-primary">Add New</a>
</div>
<div clas... |
<?php
/**
* LICENSE: 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 to in writing, software
... |
<?php
include("sess_check.php");
$id = $_GET['eve'];
$nis = $sess_nis;
$sql = "INSERT INTO temp_event(id_event,nis)VALUES('$id','$nis')";
$ress = mysqli_query($conn, $sql);
header("location: event_baru.php?act=update&msg=success");
?> |
<?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... |
@extends('layouts.app')
@section('content')
<script type="text/javascript">
function addfield() {
$("#table").append('\
<tr>\
<td>\
<select class="form-control" name="category[]">\
@forea... |
<?php
namespace IDM\Exceptions;
class PasswordIncorectException extends IDMException{} |
<?php
/**
* Tigron Front-user
*
* This file is a part of the Tigron Application 'Front-User'
*
* @package Tigron
*/
namespace Tigron\CP;
class Language {
/**
* ID
*
* @access public
* @var int $id
*/
public $id;
/**
* Details
*
* @var $details
* @access private
*/
public $details;
/**
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\User;
use Carbon\Carbon;
class LoginUsers extends Controller
{
public function get_data()
{
//$data = \
$time = Carbon::now();
$time->toDateTimeString();
return view('login.signin', co... |
<style>
.sort{
list-style: none;
border: 1px #aaa solid;
color: #333;
padding: 10px;
margin-bottom: 4px;
}
</style>
<ul id="sortlist">
<?php
$this->load->module('store_categories');
foreach($query->result() as $row){
$num_sub_cats=$this->store_categories->_count_sub_cats($row->id)... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="renderer" content="webkit">
<title>PbootCMS管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
<link rel="shortcut icon" href="<?php echo SITE_... |
<?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
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @copyright Copyright (c) 2014-2018, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com
*/
defined('BASEPATH') OR exit('... |
<?php
/**
* @package KantPHP
* @author Zhenqiang Zhang <zhenqiang.zhang@hotmail.com>
* @copyright (c) KantPHP Studio, All rights reserved.
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
*/
namespace Kant\Exception;
/**
* UserException is the base class for exceptions that... |
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html><!--<![endif]-->
<!-- Specific Page Data -->
<!-- End of Data -->
<?php
session_start();
$conn = oci_connect('mist','mist','localhost/XE');
$u... |
<?php
declare(strict_types=1);
namespace DragonCode\CodeStyler\Processors;
class Fix extends CodeStyler
{
} |
@extends('layouts.phoneArtifact')
@section('content')
<div class="container">
<div class="row vertical-spacer-40">
<div class="col-md-10">
<div class="text-center">
<h2>{{ $pageTitle }}</h2>
</div>
</div>
</div>
@if(empty($reviewContent))
<div cla... |
<?php
namespace Database\Factories;
use App\Models\Tag;
use Illuminate\Database\Eloquent\Factories\Factory;
class TagFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Tag::class;
/**
* Define the model's default ... |
<?php
declare(strict_types=1);
namespace App\Presenter;
/**
* Class UserPresenter
*
* @package App\Presenter
* @author A. Suvorkin
*/
class UserPresenter extends Presenter
{
/**
* Бан.
*
* @return string
*/
public function getBan(): string
{
return $this->model->isBan() ? ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... |
<?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\Mvc\Router\Group;
u... |
<?php
/* Copyright (C) 2008. All Rights Reserved. @license - Copyrighted Software. Author: Stéphane Francel */
// No direct access
defined( '_DIRECT_ACCESS' ) or die( 'Restricted access' );
// Search and include modules on page
function comModule_( $pos )
{
$module = array();
$mod_id = array(); # Temporary searc... |
<?php
return [
'single' => [
'label' => 'Cipta',
'modal' => [
'heading' => 'Cipta :label',
'actions' => [
'create' => [
'label' => 'Cipta',
],
'create_another' => [
'label' => 'Cip... |
<?php
namespace com\zoho\crm\api\record;
use com\zoho\crm\api\Header;
class SearchRecordsHeader
{
public static final function XEXTERNAL()
{
return new Header('X-EXTERNAL', 'com.zoho.crm.api.Record.SearchRecordsHeader');
}
} |
<?php
class _DevblocksUrlManager {
private static $instance = null;
private function __construct() {}
/**
* @return _DevblocksUrlManager
*/
public static function getInstance() {
if(null == self::$instance) {
self::$instance = new _DevblocksUrlManager();
}
return self::$instance;
}
function p... |
<div class="col-xl-3 col-lg-4 col-md-6 col-sm-6 col-xs-12 p-1">
<div class="bg-white p-2 h-100 singleSummary">
<div class="float-start text-center rounded summaryLeft">
<img src="img/dashboard/money.svg" class="img-fluid" alt="Money">
... |
<?php
namespace MailPoetVendor\Egulias\EmailValidator\Result\Reason;
if (!defined('ABSPATH')) exit;
class UnclosedComment implements Reason
{
public function code() : int
{
return 146;
}
public function description() : string
{
return 'No closing comment token found';
}
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... |
<script src="<?php echo base_url()?>public/bootstrap-select/js/bootstrap-select.min.js"></script>
<script src="<?php echo base_url()?>public/app.min.js"></script>
<script src="<?php echo base_url()?>public/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url()?>public/datatables/d... |
<?php
/**
* $Desc
*
* @version $Id$
* @package wpbase
* @author Opal Team <opalwordpressl@gmail.com >
* @copyright Copyright (C) 2014 wpopal.com. All Rights Reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*
* @website http:/wpopal.com
* @support http://wpopal... |
@extends('layout.master')
@section('content')
<!-- Portfolio Section-->
<section class="page-section portfolio" id="portfolio">
<div class="container">
<!-- Portfolio Section Heading-->
<h2 class="page-section-heading text-center text-uppercase text-secondary mb-0">Portfolio</h2... |
<?php
/**
* This file contains the HttpExceptionTest class.
*
* @package Lunr\Corona\Exceptions
* @author Heinz Wiesinger <heinz@m2mobi.com>
*/
namespace Lunr\Corona\Exceptions\Tests\Helpers;
use Lunr\Halo\LunrBaseTest;
use Exception;
use ReflectionClass;
/**
* This class contains common setup routines, prov... |
<?php
namespace HuaweiCloud\SDK\Vpc\V2\Model;
use \ArrayAccess;
use HuaweiCloud\SDK\Core\Utils\ObjectSerializer;
use HuaweiCloud\SDK\Core\Utils\ModelInterface;
use HuaweiCloud\SDK\Core\SdkResponse;
class NeutronCreateFirewallPolicyRequestBody implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
... |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
extract($displayData);
/**
* Layout variables
* -----... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/tasks/v2beta3/task.proto
namespace Google\Cloud\Tasks\V2beta3;
if (false) {
/**
* This class is deprecated. Use Google\Cloud\Tasks\V2beta3\Task\View instead.
* @deprecated
*/
class Task_View {}
}
class_exist... |
<?php
namespace modulosBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* periodo
*/
class periodo
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $descripcion;
/**
* Get id
*
* @return integer
*/
public function getId()
{... |
@extends('layout')
@section('content')
<section>
<div id=principal class="container" >
@if (Session::has('flash_error'))
<div class="tooltip_box1" id="flash_error">{{ Session::get('flash_error') }}</div>
@endif
@if (Session::has('message'))
<ul class="tick tick1">
... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class M_api extends CI_Model
{
public function register($data)
{
$this->db->insert('user', $data);
$kueri = $this->db->get_where('user', ['username' => $data['username']]);
$hasil = $kueri->result();
return $h... |
<?php
/**
* Bluz Framework Component
*
* @copyright Bluz PHP Team
* @link https://github.com/bluzphp/framework
*/
declare(strict_types=1);
namespace Bluz\Layout\Helper;
use Bluz\Layout\Layout;
use Bluz\Proxy\Registry;
/**
* Set or generate <title> code for <head>
*
* @param string $title
* @param str... |
<?php
include "Country.php";
class CountryRepository {
protected $db;
public function __construct(PDO $db) {
$this->db = $db;
}
private function read($row) {
$result = new Country();
$result->id = $row["id"];
$result->name = $row["name"];
return $result;
... |
<?php defined('SYSPATH') OR die('No direct script access.');
class Kohana_HTTP_Exception_402 extends HTTP_Exception {
/**
* @var integer HTTP 402 Payment Required
*/
protected $_code = 402;
} |
@extends('layout')
@section('title',$aFrontend['aTopic']['title'])
@section('css')
<link href="{{ asset('css/views/detail.css') }}" rel="stylesheet" >
@endsection
@section('content')
<div class="topic-detail">
<input type="hidden" id="lat" value="{{ $aFrontend['Coordinate'][0] }}">
<input type="hidd... |
<?php
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace CodeIgniter;
use CodeIgniter\Config\Services;
use CodeIgn... |
<?php
namespace App\Fields;
use App\Exceptions\MMValidationException;
use App\Exceptions\ScriptException;
use App\MMScript;
use App\MMScript\Values\Value;
use App\Models\RecordType;
use Exception;
use Validator;
abstract class Field
{
// need to make this non static? Maybe by making a fieldFactory singleton
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = ['name'];
public function employees()
{
return $this->belongsToMany(Employee::class);
}
} |
@extends('admin.layouts.app')
@section('content')
<div class="contact-area pt-100">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="contact-message-wrapper">
<h4 class="contact-title mb-25">General Settin... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*
*/
class Login extends CI_Controller {
private $post;
public function __construct( ) {
parent::__construct();
//http://stackoverflow.com/questions/18382740/cors-not-working-php
if (isset($_SERVER['HTTP_ORIGIN'])) {
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAnnosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('annos', function ... |
@if(count($errors) > 0)
@foreach($errors-> all() as $error)
<div class="alert alert-danger">
{{$error}}
</div>
@endforeach
@endif
@if(session('success'))
<div class="alert alert-success">
{{session('success')}}
</div>
@endif
@if(session('error'))
<div class="ale... |
<?php
use Laravel\Jetstream\Features;
return [
/*
|--------------------------------------------------------------------------
| Jetstream Stack
|--------------------------------------------------------------------------
|
| This configuration value informs Jetstream which "stack" you will be
... |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd3060be7b0def6320ed44c2f8f3af2f2
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... |
<?php
namespace App\Http\Controllers\Operator;
use App\Http\Controllers\Controller;
use App\Models\Competence;
use App\Models\Ledger;
use App\Models\LedgerList;
use App\Models\Score;
use App\Models\ScoreList;
use App\Models\SubGrade;
use App\Models\Subject;
use Illuminate\Http\Request;
class HomeController extends C... |
<?php
namespace Database\Tester;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Database Tester Plugin',
'description' => 'Plugin for loading tests that involve the database.',
'author' ... |
<?php
namespace DoctrineORMModule\Proxy\__CG__\Application\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class OrgaoExterno extends \Application\Entity\OrgaoExterno implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading proper... |
<?php
declare (strict_types=1);
namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor;
use PHPStan\PhpDocParser\Ast\Node;
use PHPStan\PhpDocParser\Ast\Type\UnionTypeNode;
use PHPStan\PhpDocParser\Lexer\Lexer;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDoc... |
<div class="form-row agricon-table-container agricon-wijzigbestaande-ajaxtable">
<?php
// de "selecteer..." optie verwijderen voor deze dropdowns
if (isset($leveranciers_dropdownOptions)) {
unset($leveranciers_dropdownOptions['']);
}
if (isset($foliesRuw)) {
$template = array('tabl... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
$station[] = "OEAB; Abha, Abha";
$station[] = "OEAH; Al Ahsa, Al Ahsa";
$station[] = "OEBA; Al Baha, El Baha";
$station[] = "OEBH; Bisha, Bisha";
$station[] = "OEBQ; Abqaiq, Abqaiq";
$station[] = "OEDF; King Fahd International, Dammam";
$station[] = "OEDR; King Abdulaziz Ab, Dhahran";
$station[] = "OEGN; Jazan, ... |
<?php
namespace dlaser\AgendaBundle\Controller;
use dlaser\ParametrizarBundle\Entity\Cargo;
use dlaser\ParametrizarBundle\Entity\Paciente;
use Doctrine\Tests\Common\Annotations\Null;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use dlaser\AgendaBundle\Ent... |
<?php
class Users extends CI_Controller{
public function __construct(){
parent::__construct();
$this->load->library('session');
}
public function register(){
$data['title'] = "Sign Up";
//echo "<pre>";print_r($_POST);echo "</pre>";
$this->form_validation->set_r... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\birthmodel;
use PDF;
class birthcontroller extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$students = birthmodel::all()->... |
<?php
namespace Fuel\Migrations;
class Add_end_time_to_events
{
public function up()
{
\DBUtil::add_fields('events', array(
'end_time' => array('type' => 'time'),
));
}
public function down()
{
\DBUtil::drop_fields('events', array(
'end_time'
));
}
} |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "secret_question".
*
* @property integer $secret_question_id
* @property string $question
*
* @property User[] $users
*/
class SecretQuestion extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static functio... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gossip/message.proto
namespace Hyperledger\Fabric\Protos\Gossip;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Envelope contains a marshalled
* GossipMessage an... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PrivateMessage extends Model
{
protected $guarded = [];
public function user()
{
return $this->
belongsTo(User::class);
}
} |
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'name' => 'john doe',
'email' => 'admi... |
<?php
namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes();
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (file_exists(SYSTEMPATH . 'Config/Routes.php')) {
require SYSTEMPATH . 'Config/Routes.php';
}
/*
* ... |
<?php
namespace FatecPG\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.