text stringlengths 2 1.03M |
|---|
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "UsuariosRoles".
*
* @property integer $roleId
* @property integer $usuarioId
*
* @property Roles $role
* @property Usuarios $usuario
*/
class UsuariosRoles extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
pub... |
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-frontend',
'basePath' => dirname(__DIR__),
'bootst... |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Http\Response as HttpResponse;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\N... |
<?php
namespace Database\Factories;
use App\Models\Blog;
use Illuminate\Database\Eloquent\Factories\Factory;
class BlogFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Blog::class;
/**
* Define the model's defau... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Report extends MY_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this control... |
@extends('default')
@section('contents')
<div class="container">
<h1 style="text-align: center">权限修改</h1>
<form action="{{route('permission.update',[$permission])}}" method="post">
<label>
权限名称:
</label>
<input type="text" class="form-control" plac... |
<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:89:"E:\phpStudy\PHPTutorial\WWW\fastadmin\public/../application/admin\view\auth\rule\add.html";i:1557482263;s:80:"E:\phpStudy\PHPTutorial\WWW\fastadmin\application\admin\view\layout\default.html";i:1562751673;s:77:"E:\phpStudy\PHPTutorial\WWW\fastadmin\application\admi... |
<?php $__env->startSection('main-body'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>user details</title>
</head>
<body>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!... |
<?php
namespace think\cache\driver;
use think\Cache;
use think\Exception;
use think\Log;
/**
配置参数:
'cache' => [
'type' => 'Redisd'
'host' => 'A:6379,B:6379', //redis服务器ip,多台用逗号隔开;读写分离开启时,默认写A,当A主挂时,再尝试写B
'slave' => 'B:6379,C:6379', //redis服务器ip,多台用逗号隔开;读写分离开启时,所有IP随机读,其中一台挂时,尝试读其它节点,可以配置权... |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use app\common\Utility;
/* @var $this yii\web\View */
/* @var $model app\models\Work */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$changeattribute='work_type_id';
$this->registerJs(
'$("document").ready(function(){
$("#new_work").on("pjax... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
/**
* The Template for displaying product archives, including the main shop page which is a post type archive.
*
* Override this template by copying it to yourtheme/woocommerce/archive-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePlayerModelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('playermode... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class CommercialParticipantMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
... |
<?php
/**
* =========================================================
* on-demand with trick-play tracks
* =========================================================
* The example below creates two extra trick play tracks,
* besides the files genereated with the on-demand example.
*/
use Shaka\Options\Streams\DAS... |
<?php
// +----------------------------------------------------------------------
// | 联盟管理平台
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2020 http://www.qyhzlm.com All rights reserved.
// +----------------------------------------------------------------------
// | ... |
<?php
namespace Testo;
class GzipResponse extends EchoResponse {
public function response() {
header("Content-Encoding: gzip");
// $content = gzcompress(parent::response());
// $content = gzinflate(parent::response());
$content = gzencode(parent::response());
// header("Content-Length: " . mb_strlen($content)... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNewsEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('news_events'... |
@extends('main')
@section('contenido')
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<body>
<div class="card">
<div class="card-header">
<h3><span cla... |
<main>
<div class="col-lg-6">
<div class="box">
<h2>Update Product</h2>
<?php
echo '<div style ="color:red;"><strong>'.$this->session->flashdata("error").'</strong></div><br>';
echo '<div style ="color:red;"><strong>'.$this->ses... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyr... |
<?php
namespace AppBundle\Utils;
use Doctrine\ORM\EntityManager;
class GestionProduit
{
public function __construct(EntityManager $entityManager)
{
$this->em =$entityManager;
}
/**
* Generation du code du domaine
*/
public function codeDomaine()
{
$nombre_domaine ... |
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
/**
* Contains the description of an error in a Telegram Passport element; for bots only.
*/
class InputPassportElementError extends TdObject
{
public const TYPE_NAME = 'inputPassportElementError';
... |
<?php
declare(strict_types=1);
namespace Tests\Commands\Upgrade\Databases\V6_14_0\Migrations;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOauthAuthCodesTable extends Migration
{
/**
* Run the migrations.
*
... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'C:/localhost/oakandaspen-grav-v1/user/plugins/admin/languages/ru.yaml',
'modified' => 1569425144,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'Это бета-релиз! Используете его в продакшене на сво... |
<?php
namespace Oro\Bundle\LocaleBundle\Model;
interface CalendarFactoryInterface
{
/**
* Get calendar instance
*
* @param string|null $locale
* @param string|null $language
* @return Calendar
*/
public function getCalendar($locale = null, $language = null);
} |
<?php if(! defined('BASEPATH'))exit('No direct script access allowed');
Class Evaluasi extends CI_Controller {
public function __construct()
{
parent::__construct();
is_logged_in();
$this->load->helper('url');
$this->load->model('evaluasi_model');
}
public function ind... |
<?php
// 请先填写相关字段,$fops字段格式详见wcs api 文档
require_once __DIR__ . '/../common.php';
use Wcs\Fmgr\Fmgr;
use Wcs\Config;
use Wcs\MgrAuth;
use Wcs\Utils;
//可选参数
$notifyURL = '';
$force = 0;
$separate = 0;
//fops参数
$bucket = Utils::url_safe_base64_encode('<input key>');
$keys = Utils::url_safe_base64_encode('<input key1>... |
<?php
Breadcrumbs::register('admin.trackablelogtypes.index', function ($breadcrumbs) {
$breadcrumbs->parent('admin.dashboard');
$breadcrumbs->push(trans('menus.backend.trackablelogtypes.management'), route('admin.trackablelogtypes.index'));
});
Breadcrumbs::register('admin.trackablelogtypes.create', function ... |
<section class="section">
<div class="container hotoffer">
<div class="hotoffer__info">
<div class="hotoffer__info-content">
<h2 class="title title--center">
{{ $data['title'] }}
</h2>
<p class="text hotoffer__info-desc">
{{ $data['desc'] }}
</p>
<... |
<?php
final class ManiphestTransactionSaveController extends ManiphestController {
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
$task = id(new ManiphestTaskQuery())
->setViewer($user)
->withIDs(array($request->getStr('taskID')))
->nee... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ProductsController extends Controller
{
public function AgeIndex(){
return view('products.age');
}
public function SizeIndex(){
return view('products.size');
}
public function PriceIndex(){
return vie... |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use kartik\export\ExportMenu;
/* @var $this yii\web\View */
/* @var $searchModel app\models\PostSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Posts';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="post-index">
... |
@extends('layouts.app')
@section('content')
<br>
<br>
<div class="container">
<div class="row">
<div class="col-md-6">
<weatherdata
initial-temperature="{{$weatherData[0]->temperature}}"
initial-humidity="{{$weatherData[0]->humidity}}"
initial-pow... |
@extends('layouts.user-dashboard')
@section('style')
<style>
html .note-editor{
background: white;
}
html .note-editor .panel-heading .note-btn-group button i,
html .note-editor .panel-heading .note-btn-group button span{
color: black;
}
</style>... |
@extends('layout.master')
@section('title')
Posts
@endsection
@section('content')
<h1> Posts </h1>
<hr> <br>
<!-- if post delete -->
@if(session()->has('success'))
{{session()->get('success')}}
@endif
@foreach($posts as $post)
<div>
<h3> {{$post->name}} </h3>
<p> {{$post->description}} </p>
<a ... |
<?php
namespace Database\Seeders;
use App\Models\Subcategory;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class SubcategorySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
/* 'Celulares y tablets', */
$su... |
<?php
namespace AppBundle\Form;
use AppBundle\Entity\Beer;
use AppBundle\Entity\Language;
use AppBundle\Form\Place\AddressType;
use AppBundle\Form\Place\PictureType;
use AppBundle\Form\Place\ScheduleType;
use AppBundle\Service\PlaceService;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
u... |
<?php
/* database/structure/empty_table.twig */
class __TwigTemplate_b21654476914e69a659e1dc699db57c9f69198a5e9e99a91478ef0795c8811aa extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\express\fieldset@[annot]][1]/ */
/* Type: array */
/* Expiration: 2020-12-24T17:00:13+01:00 */
$loaded = true;
$expiration = 1608825613;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YToyOntpOjA7TzoyNzoiR... |
<?php
/**
* The template for displaying product content within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme... |
<?php
require_once('PPBootStrap.php');
/*
* # PaymentDetails API
Use the PaymentDetails API operation to obtain information about a payment. You can identify the payment by your tracking ID, the PayPal transaction ID in an IPN message, or the pay key associated with the payment.
This sample code uses AdaptivePaymen... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'zaporylie\\ComposerDrupalOptimizations\\' => array($vendorDir . '/zaporylie/composer-drupal-optimizations/src'),
'rvtraveller\\QuicksilverComposerInstaller\\' => array($ve... |
<?php
namespace App\Http\Controllers;
use App\Models\Cart;
use App\Models\Product;
use App\Models\User;
use Illuminate\Contracts\Session\Session;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
class CartController extends Controller
{... |
@extends('dashboard.base')
@section('content')
<div class="container-fluid">
<div class="fade-in">
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-header"><strong>Credit Card</strong> <small>Form</small></div>... |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\Tests\Bridge\Doctrine\Orm\Ex... |
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Subheader-->
<div class="subheader py-2 py-lg-4 subheader-solid" id="kt_subheader">
<div class="container-fluid d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Repositories\PecaRepository;
class PecaController extends Controller
{
public function __construct (PecaRepository $aux)
{
$this->classe = $aux;
}
public function store(Request $request)
{
$peca = new P... |
<?php
namespace Baddum\Model418\Core;
class ArrayObject extends \ArrayObject
{
/* INITIALIZATION
*************************************************************************/
public function __construct($input = [])
{
parent::__construct($input, \ArrayObject::ARRAY_AS_PROPS);
}
/* GE... |
<?php
class Tahunajaran_model extends CI_Model
{
public function getTahunajaran()
{
return $this->db->get('tahun_ajaran')->result_array();
}
public function getTahunajaranById($id = null)
{
if ($id == null) {
return $this->db->get('tahun_ajaran')->result_array();
... |
@extends('layouts.app')
@section('content')
<!-- Breadcrumb Section Begin -->
<section class="breadcrumb-section set-bg" data-setbg="{{asset('admin/img/breadcrumb.jpg')}}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="breadcrumb__text... |
<!--Theme Name -> Dark Movies -->
<!--Coded By -> justin coder -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title')</title>
<link rel="icon" type="image/png" href="{{ asset('/images/icons/dar... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\DB;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
... |
<div class="row">
<?php echo form_open('index.php/upload/do_upload_prog'); ?>
<div class=" alert alert-success">
<div class="page-header text-center">
<h1>Community Foram</h1>
</div>
</div>
<?php echo br(2) ?>
<h4><samp>Tittle : </samp>
<input type="text" placeholder="problem tittle" required name="commu... |
@extends('test.master')
@section('content')
<form action="{{route('form.result', ['id1'=>2, 'id2'=>3])}}" method="post">
@csrf
Имя: <input type="text" name="name"><br>
Фамилия: <input type="text" name="surname"><br>
Е-mail: <input type="text" name="e-mail"><br>
Логин: <input... |
<?php
namespace App\Http\Controllers\Backend;
use App\Permission;
use App\Role;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\View;
class AccessController extends Controller
{
//
public function list()
{
... |
<?php
/**
* WebhookApi
* PHP version 5
*
* @category Class
* @package com\hydrogen\nucleus
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Hydrogen Atom API
*
* The Hydrogen Atom API
*
* OpenAPI spec version: 1.7.0
* Contact: info@hydrogenplatform.com... |
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="header">
<h4 class="title">Add Product</h4>
</div>
<div class="content"... |
<?php
namespace App\Entity;
use App\Repository\AvailabilityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AvailabilityRepository::class)
*/
class Availability
{
const LUNDI = 1;
cons... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Student */
$this->title = 'Change Device Id';
?>
<div class="assign-student-Route ">
<?= $this->render('_ChangeDeviceId_form', [
'users' => $users,
'model' => $model,
]) ?>
</div> |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/sociallogin.css">
<title>Laravel</... |
<?php
use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applicatio... |
<?php
include(dirname(__FILE__).'/../lib/Service.php');
define('PROMPT', "\n> ");
$api = null;
$options = array_merge(
array(
'service' => 'http://localhost/',
'extra' => '',
'debug' => 0,
'log' => 'req'
),
getopt('', array(
'service:',
'extra:',
'debug',
'log:')
)
);
// Run a simple Presto shell... |
<?php
namespace EasyCorp\Bundle\EasyAdminBundle\Field;
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
/**
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
*/
final class AssociationField implements FieldInterface
{
use FieldTrait;
p... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHeadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('heads', function ... |
@extends('layouts.admin')
@section('content')
<div class="content">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
Dashboard
</div>
<div class="card-body">
@if(session... |
<?php
/**
* This file is part of the Everon framework.
*
* (c) Oliwier Ptak <oliwierptak@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Everon\DataMapper\Interfaces\Dependency;
use Everon\DataMapper\Interface... |
<?php
namespace InfyOm\Generator\Generators\Scaffold;
use InfyOm\Generator\Common\CommandData;
use InfyOm\Generator\Utils\TemplateUtil;
class RoutesGenerator
{
/** @var CommandData */
private $commandData;
/** @var string */
private $path;
public function __construct(CommandData $commandData)
... |
<?php
namespace App\Models\Hrd;
use CodeIgniter\Model;
class HrdjabatanModel extends Model
{
protected $table = 'hrd_jabatan';
protected $returnType = 'object';
protected $primaryKey = 'id_jabatan';
protected $id = 'id_jabatan';
protected $useT... |
<?php
namespace Modules\NGProxy\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* The module namespace to assume when generating URLs to actions.
*
* @var ... |
<?php
namespace Acme\CoreDomainBundle\Repository;
use Acme\CoreDomain\User\UserRepository;
use Acme\CoreDomain\User\UserId;
use Acme\CoreDomain\User\User;
class InMemoryUserRepository implements UserRepository
{
private $users;
public function __construct()
{
$this->users[] = new User(
... |
<?php exit;?>a:1:{s:5:"class";a:1:{i:0;s:41:"AlipayOpenServicemarketOrderAcceptRequest";}} |
<?php
/**
* Copyright (c) 2019 - 2020 - Bas Milius <bas@mili.us>
*
* This file is part of the Columba 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 Columba\Foundation\Preferences;
us... |
<!DOCTYPE html>
<html lang="es">
<head>
<title>{{ env('APP_NAME') }}</title>
<meta charset="UTF-8">
<meta name="description" content="WebUni Education Template">
<meta name="keywords" content="webuni, education, creative, html">
<meta name="viewport" content="width=device-wid... |
<?php
namespace ConfrariaWeb\Location\Controllers;
use ConfrariaWeb\Location\Resources\StreetResource;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class StreetController extends Controller
{
public $data;
public function __construct()
{
$this->data = [];
}
public ... |
<?php
namespace Tests;
class RedisSessionStorageTest extends IntegrationTestCase
{
public function setUp()
{
parent::setUp();
$this->biz['session.options'] = array(
'max_life_time' => 1,
'session_storage' => 'redis',
);
}
public function testCreate()
... |
<div>
<form class="form" method="POST" action="{{route('borrowers.add')}}">
<label>Borrower's name:</label>
<input class="form-control" name="name" placeholder="Enter Borrower's Name"/><br>
<label>Address:</label>
<input class="form-control" name="address" placeholder="Borrowers's ... |
<?php
$user = check_auth();
if (!$user->is_admin()) exit('Not authorized.');
$dbConn = get_connection();
$cms->script[] = "$(function(){ $('.tablesorter').tablesorter(); });";
$cms->js[] = "js/jquery.tablesorter.js";
$cms->css[] = "css/blue/style.css";
$sql = "SELECT
c.collector_id,
c.collector_last_name,
... |
<?php
declare(strict_types=1);
namespace Sirius\Sql;
use PDO;
class Bindings
{
protected $values = [];
protected $inlineCount = 0;
public function value(string $key, $value, int $type = -1)
{
if ($type === -1) {
$type = $this->getType($value);
}
$this->values[$ke... |
<?php
/**
* App
*
* @category BEAR
* @package {@app@}
* @author $Author: $ <username@example.com>
* @license {@app_license@} http://www.example.com/
* @version @package_version@
* @link http://www.example.com/
*/
/**
* App
*
* @category BEAR
* @package {@app@}
* @author $Author: $ <username... |
<?php
/**
* @api {delete} /webservices/delete.php Delete an existing event
* @apiVersion 1.0.0
* @apiName DeleteEvent
* @apiGroup Events
*
* @apiParam {String} id id
*
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "status": "OK"
* }
*/
/**
* Created by... |
<?php
namespace App\Http\Livewire\Admin;
use Livewire\Component;
class AdminProfileComponent extends Component
{
public function render()
{
return view('livewire.admin.admin-profile-component')->layout('layouts.admin');
}
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use DB;
class Lens extends Model
{
protected $table = 'lens';
protected $primaryKey = 'lensID';
protected $fillable = [ 'lenstype', 'lensprice'];
public $timestamps = false;
} |
<?php
/**
* web-vision GmbH
*
* NOTICE OF LICENSE
*
* <!--LICENSETEXT-->
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.web-vision.de for more information.
*
*... |
<?php
App::uses('AppController', 'Controller');
App::uses('File', 'Utility');
class RtmnController extends AppController
{
public $uses = ['RtmnUrls'];
public function index(){
// $this->autoRender = false;
}
public function index_2(){
$this->view = 'index_2';
}
public functi... |
<?php
use Illuminate\Routing\Router;
/** @var Router $router */
$router->group(['prefix' =>'/washer'], function (Router $router) {
$router->bind('washer', function ($id) {
return app('Modules\Washer\Repositories\WasherRepository')->find($id);
});
$router->get('washers', [
'as' => 'admin.wa... |
@extends('layouts.app')
@section('content')
<nav class="navbar navbar-expand-lg navbar-light fixed-top" style="background: #37517e">
<a class="navbar-brand text-white container pl-5" href="#">Formulir Pendaftaran</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSuppor... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017
* @package Client
* @subpackage JsonApi
*/
namespace Aimeos\Client\JsonApi\Locale;
/**
* Factory for locale JSON API client
*
* @package Client
* @subpackage JsonApi
*/
class Factory
extends \Aime... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableUser extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Schema::create('users', function (Blueprint $table) {
// $... |
--TEST--
CommonMark\Node\Media write cached url
--FILE--
<?php
$link = new CommonMark\Node\Link;
$f = function($value) use($link) {
return $link->url = $value;
};
var_dump($f("OK"), $f("KO"));
?>
--EXPECT--
string(2) "OK"
string(2) "KO" |
@extends('layouts.index')
@section('content')
<div class="container-fluid">
<h1 class="mt-4">{{$sen->name}} Detail</h1>
<div class="card mb-4">
<div class="card-body">
<div class="row">
<div class="col-3">
<but... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%articles}}`.
*/
class m190515_055644_create_article_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableO... |
<?php
declare(strict_types=1);
namespace Gam6itko\OzonSeller\Tests\Service;
use Gam6itko\OzonSeller\Tests\PsrInstanceFactoryTrait;
use PHPUnit\Framework\TestCase;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
abstract class AbstractTe... |
@extends("layouts.default")
@section("meta")
<meta http-equiv="refresh" content="60">
@endsection
@section("content")
<div class = "container">
<h3 style="text-align: center">{{ \App\Http\Controllers\SoccerAPI\SoccerAPIController::translateString("application", "Livescores") }} - {{date($date_format)}... |
<?php
namespace Blog\Config;
use CodeIgniter\Config\BaseService;
class Services extends BaseService
{
public static function postManager()
{
// ...
}
} |
<?php
return [
'weddingapp.weddings' => [
'index' => 'weddingapp::weddings.list resource',
'create' => 'weddingapp::weddings.create resource',
'edit' => 'weddingapp::weddings.edit resource',
'destroy' => 'weddingapp::weddings.destroy resource',
],
'weddingapp.halls' => [
... |
<?php
include 'header_hebergement.php';
?>
<div class="main container-fluid">
<h2>Différents types d'hebergements</h2>
<hr class="separator">
<div class="container row img_presentation">
<div class="card col-xl-3 col-lg-3 col-md-3 col-sm-3">
<h3>CAMPINGS</h3>
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class testecontrollers extends Controller
{
public function natal() {
return view('teste');
}
public function store() {
return view('notas');
}
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Camp extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['title','price'];
} |
<?php
namespace Tests\AppBundle\Form\Filter\Admin\Assignments;
use AppBundle\Filter\Common\Assignments\BrandCategoryAssignmentFilter;
use AppBundle\Form\Filter\Admin\Assignments\BrandCategoryAssignmentFilterType;
use Tests\AppBundle\Form\Filter\Admin\Base\SimpleFilterTypeTest;
class BrandCategoryAssignmentSimpleFilt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.