text stringlengths 2 1.03M |
|---|
<?php
/**
* Smarty Extend
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_options} function Extend
*
* Type: function<br>
* Name: html_options<br>
* Input:<br>
* - name (optional) - string default "select"
* - values (required if no options supplied) - ar... |
<?php
return [
'First_title' => 'Why Nanosoft should be your first choice',
'First_desc' => 'Our distinction is represented in the quality and beauty of colors in a gray world, because we are success partners and not just an advertising company, we take care of quality in work more than quantity and we create t... |
<?php
/**
* Author: Wing Ming Chan
* Copyright (c) 2018 Wing Ming Chan <chanw@upstate.edu>
* MIT Licensed
* Modification history:
* 8/26/2016 Added constant NAME_SPACE.
* 5/28/2015 Added namespaces.
* 7/25/2014 File created.
*/
namespace cascade_ws_utility;
use cascade_ws_constants as c;
use cascade_ws_... |
<?php
namespace App\Repositories;
use App\Blog;
/**
*
*/
class BlogsRepository
{
// protected $redis;
//
// public function __construct(Redis $redis)
// {
// $this->redis = $redis;
// }
public static function all()
{
return Blog::all();
}
} |
<?php
/**
* ALIPAY API: alipay.user.antarchive.face.query request
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
class AlipayUserAntarchiveFaceQueryRequest
{
/**
* 蚂蚁档案人脸图片查询
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodC... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLibrariesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('libraries', f... |
<?php
/**
* @package dompdf
* @link http://dompdf.github.com/
* @author Benj Carson <benjcarson@digitaljunkies.ca>
* @author Fabien Ménager <fabien.menager@gmail.com>
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
*/
/**
* DOMPDF - PHP5 HTML to PDF renderer
*
* DOMPD... |
<?php
/* Cachekey: cache/stash_default/doctrine/dc2_5a6d2e7983b23aec10138608840d010e_[concrete\core\entity\file\version$classmetadata][1]/ */
/* Type: array */
/* Expiration: 2019-05-07T10:44:28+00:00 */
$loaded = true;
$expiration = 1557225868;
$data = array();
/* Child Type: object */
/* Child Type: integer */... |
<?php
namespace Fjord\Permissions\Requests\Role;
use Illuminate\Foundation\Http\FormRequest;
class DeleteRoleRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return fjord_user()->can... |
<?php
namespace Mahadckap\Productimize\Plugin\Model;
class Editquoteupdate
{
/**
* @var \Magento\Framework\App\RequestInterface
*/
protected $request;
/**
* @var \Magento\Framework\App\Response\RedirectInterface
*/
protected $redirect;
/**
* @var \Magento\Sales\Api\OrderRe... |
<?php
/**
* Updated by neTpyceB [devp.eu] at 2017.4.2
*/
namespace TMCms\Cache\Interfaces;
/**
* Interface ICache
* @package TMCms\Cache
*/
interface ICache
{
/**
* Return is this cache works in system
*/
public static function itWorks();
/**
* Insert or update value by key
* @pa... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ECE Tech News - A new record broken by the SpaceX rocket</title>
<!-- Fonts -->
<link href... |
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use App\Http\Traits\Hashidable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permission\... |
<?php
function never_func(): never
{
while (true) {
sleep(1);
}
}
never_func(); |
<?php return array (
'codeToName' =>
array (
13 => 'CR',
32 => 'space',
33 => 'exclam',
34 => 'quotedbl',
35 => 'numbersign',
36 => 'dollar',
37 => 'percent',
38 => 'ampersand',
39 => 'quotesingle',
40 => 'parenleft',
41 => 'parenright',
42 => 'asterisk',
43 => '... |
<?php namespace App\Filters;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use CodeIgniter\Filters\FilterInterface;
class Auth implements FilterInterface
{
public function before(RequestInterface $request, $arguments = null)
{
// jika user belum login
if(!sessi... |
<?
/**
Command line interface
Purpose: To use framework with non-web-adjunct scripts (ie, no 'control' routing)
Use:
Include this file in main script file
As normal, edit $_ENV before or after Apply any overlapping $_ENV changes after inclusion
What this does
Sets various $_ENV
Makes standard folders (storage fol... |
<?php
return [
'navigation_title' => [
'name' => 'Назва навігації',
],
'navigation_action' => [
'name' => 'Навігаційна дія',
],
'country_fields' => [
'name' => 'Поля країни',
],
'date_fields' => [
'name' => 'Поля дати',
],
'price_fields' => [
... |
<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;
class Article extends Eloquent {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'articles';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected ... |
@extends('layout')
@section('content')
<table class="table table-hover">
<tr>
<th>ID</th>
<th>Title</th>
<th>Author</th>
<th>Description</th>
<th>Year</th>
<th></th>
</tr>
@foreach($books as $book)
<tr>
<td>{{ $book->id }}</td>
<td>{{ $book... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Post;
class PostsController extends Controller
{
public function index()
{
$posts = Post::orderBy('created_at', 'desc')->get();
return view('posts.index', ['posts' => $posts]);
}
/* create */
public ... |
<?php
namespace Knuckles\Scribe\Tools;
class Globals
{
public const SCRIBE_VERSION = '3.26.0';
public static bool $shouldBeVerbose = false;
public static $__beforeResponseCall;
public static $__afterGenerating;
public static $__instantiateFormRequestUsing;
} |
@extends('layouts.master')
@section('contenido')
<form action="{{url('/siembras/novedades/eliminar')}}" method="POST" role="form">
{{csrf_field()}}
<legend>Elija una Novedad</legend>
<div class="form-group">
<label for="">Novedad </label>
<select name="novedad_id" id="inputidNovedad" class="... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\AuthorizenetAcceptjs\Gateway\Http;
use InvalidArgumentException;
use Magento\AuthorizenetAcceptjs\Gateway\Config;
use Magento\Framework\HTTP\ZendClient;
use Magento\Frame... |
<?php
// I had to place this in a separate folder because the template/{whatever} was already taken in a route.
$lol = $_POST['search_text'];
$percentages = '%'.$lol.'%';
$json = App\BookCollection::where('cname', 'like', $percentages)->get();
$array = json_decode( $json, true );
//how to return... |
@foreach ($product->categories as $category)
{{ $category->name }}{{ $loop->last ? '' : ', ' }}
@endforeach |
<?php
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pro... |
<style>
.active7
{
background-color:#1fae66 !important;
}
</style>
<link href="<?php echo base_url();?>adminassets/plugins/dataTables/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url();?>adminassets/plugins/dataTables/css/dataTables.bootstrap.css" rel="stylesheet" type="tex... |
<?php
/**
* Created by PhpStorm.
* User: jeromesuhard
* Date: 01/01/2019
* Time: 17:37
*/
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
class HomeRepository extends EntityRepository
{
public function getAllLeShow($home)
{
// QueryBuilder => Pour éxecuter des re... |
@extends('layouts.default')
@foreach($products as $pd)
@section('title', $pd->name )
@section('content')
<div class="single_page">
<div id="wrapper-website">
<div class="content_all row">
<div class="content_item col-md-6">
<img src="{{ asset('upload/imageProducts') }}/{{ $pd->anh }}">
</div>
... |
@extends('home')
@section('title', 'Thêm mới tác giả')
@section('content')
<div class="row">
<div class="col-md-12 text-center">
<h2>Thêm mới tác giả</h2>
</div>
<div class="col-md-12">
<form method="post" action="{{ route('writter.store') }}" enctype="multipart/fo... |
<?php
declare(strict_types=1);
namespace Tipoff\EscapeRoom\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use Tipoff\EscapeRoom\Models\EscaperoomRate;
use Tipoff\Support\Contracts\Models\UserInterface;
class EscaperoomRatePolicy
{
use HandlesAuthorization;
public function viewAny(UserInterface ... |
<?php
/**
* This file supplies a dumb store backend for OpenID servers and
* consumers.
*
* PHP versions 4 and 5
*
* LICENSE: See the COPYING file included in this distribution.
*
* @package OpenID
* @author JanRain, Inc. <openid@janrain.com>
* @copyright 2005-2008 Janrain, Inc.
* @license http... |
<div class="container">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<div class="alert alert-success">
<strong>Transaksi Berhasil Silahkan Cetak Faktur Penjualan!</strong>
<a class="btn btn-default" href="<?php echo base_url() . 'sales' ?>"... |
@extends('layouts/app')
@section('content')
<section class="container section-top mb-5">
<div class="row">
<div class="col-6">
<h2>Gestion des rôles</h2>
</div>
<div class="col-6 text-right">
<a class="btn my-3 custom-btn-secondary" href="/dashboard">Dashboard</a>
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
class Post extends Model
{
use HasFactory;
protected $table = "posts";
protected $fillable = ['user_id','category','title','text','hobby_img_path',... |
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estadistica <?php echo $_SESSION['notified2'];?></title>
<?php include('../app/plantilla/general/libCss.php'); ?>
<link rel="stylesh... |
<?php
/**
*============================
* author:Farmer
* time:2018/3/10
* function:
*============================
*/
namespace app\common\api;
use app\common\BasePlatform;
use app\common\Encrypt;
use icf\lib\other\http;
class WangyiPlatform extends BasePlatform {
public function __construct($param) {
... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<title>CS</title>
<link rel="... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class ClientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// only all... |
<?php
$sql = $single_post_data['info'];
?>
<!-- Page content -->
<div id="page-content-wrapper">
<div class="page-content">
<!-- Content Header (Page header) -->
<section class="content-header z-depth-1">
<div class="header-icon">
<i class="fa fa-file-o"></i>
... |
<?php
namespace Bdf\Queue\Util;
use PHPUnit\Framework\TestCase;
/**
* @group Bdf_Queue
* @group Bdf_Queue_Util
*/
class MultiServerTest extends TestCase
{
/**
*
*/
public function test_empty_config()
{
$config = [
'hosts' => [
'localhost' => 80
... |
<?php
namespace App\Http\Controllers\Category;
use App\Category;
use App\Http\Controllers\ApiController;
use App\Transformers\CategoryTransformer;
use Illuminate\Http\Request;
class CategoryController extends ApiController
{
public function __construct()
{
parent::__construct(); // As we are... |
<?php
use Illuminate\Database\Seeder;
class AdsTypeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\App\AdsType::create([
'name' => 'شهادة معتمدة',
]);
}
} |
@extends('backpack::layout')
@section('header')
<section class="content-header">
<h1>
{{ trans('backpack::crud.edit') }} <span class="text-lowercase">{{ $crud->entity_name }}</span>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url('admin/dashboard') }}">{{ trans('backpack::crud.admin') }}</a></li>... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
protected $casts=[
'stop_address'=>'array'
];
} |
<?php
namespace App\Http\Controllers;
use App\Filme;
use Illuminate\Http\Request;
class FilmeController extends Controller
{
function criar(Request $request) {
return view('filme.criar');
}
function guardar(Request $request) {
$dataValidate = $request->validate([
'nome' => 'S... |
@section('plugins.Sweetalert2', true)
@push('js')
<script>
function confirmDelete(id) {
Swal.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\web;
use Yii;
use yii\base\InlineAction;
use yii\helpers\Url;
/**
* Controller is the base class of web controllers.
*
* @property string $canonicalU... |
<?php
namespace App\Formatters;
class DumpFormatter
{
public function output(string|array $results)
{
if (!is_array($results)) {
dump($results);
}
foreach ($results as $row) {
dump($row);
}
}
} |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\validators;
use Yii;
use yii\base\Component;
use yii\base\NotSupportedException;
/**
* Validator is the base class for all validators.
*
* Child clas... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class User_info extends Model
{
protected $table='user_info';
public $timestamps =true;
public function user()
{
return $this->belongsTo(User::class,'user_id');
}
} |
<?php
/**
* @copyright Copyright (C) 2015-2021 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
namespace app\models;
use Yii;
/**
* This is the model class for table "winikalog_version".
*
* @property integer $id
* @property inte... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. A... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... |
@extends('layout/layout')
@extends('layout/nav')
@section ('title','Inicio')
@section("css")
@endsection
@section ('contenido')
<!-- Animated -->
<div class="animated fadeIn">
<!-- Traffic -->
<div class="row">
<div class="col-lg-12">
<div class="card">
... |
<?php
declare(strict_types=1);
namespace Fp\Psalm\Util\TypeRefinement;
use Psalm\Type\Union;
final class CollectionTypeParams
{
public function __construct(
public Union $key_type,
public Union $val_type,
) { }
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Login</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Ionicons -->
<link rel="stylesheet" href="ht... |
<?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\Component\Security\Acl\Tests\Dbal;
use Symfony\Component\Securi... |
<x-app-layout>
<div class="mt-5 md:mt-0 md:col-span-2 container mx-auto">
@if (session('success'))
<div class="bg-teal-100 border-t-4 border-teal-500 rounded-b text-teal-900 px-4 py-3 shadow-md"
role="alert">
<div class="flex">
<div class="py-... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\base;
use yii\helpers\StringHelper;
use Yii;
/**
* Security provides a set of methods to handle common security-related tasks.
*
* In particular, Sec... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Decor extends Model
{
use HasFactory;
public $timestamps = false;
protected $fillable = ['first_headline', 'first_image', 'first_text', 'second_headline', 'second_image', 'se... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Industry extends Model
{
protected $table = 'industries';
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePeminjamenTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('peminjamen',... |
<?php //00551
// --------------------------
// Created by Dodols Team
// --------------------------
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function... |
<?php
namespace MassEdge\MyWaterToronto;
use Symfony\Component\Console\Application;
class Cli {
/**
* @var Application
*/
private $application;
function __construct() {
$this->application = new Application();
$this->application->add(new ConsumptionCommand());
}
functio... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Tournament */
$this->title = 'Обновление турнира: {nameAttribute}';
$this->params['breadcrumbs'][] = ['label' => 'Турниры', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' =>... |
<?php
namespace Astrotomic\Translatable\Tests;
use Astrotomic\Translatable\Tests\Eloquent\Vegetable;
final class EloquentOverrideTest extends TestCase
{
/** @test */
public function to_array_returns_translated_attributes(): void
{
$vegetable = factory(Vegetable::class)->make(['name:en' => 'Peas']... |
<?php
namespace Proj\Base\Assetic\Filter;
use Assetic\Asset\AssetInterface;
use Assetic\Filter\FilterInterface;
/**
* Class MyFilter
* @package LimeThinking\SpringBundle\Assetic\Filter
*/
class JSFilter implements FilterInterface {
//=====================================================
//== Verejne met... |
<?php
namespace App;
use Sunra\PhpSimple\HtmlDomParser;
/**
* Class ArticleStyle
*
* @package \App
*/
class ArticleStyle
{
//处理之后的html
protected static $rs = "";
//html自封闭标签
protected static $noEndLabel = array("embed", "wbr", "hr", "col", "area", "input", "param", "basefont");
/**
* @... |
<?php
/**
* Interface that newsletter add-ons should implement
*
* @package Caldera_Forms
* @author Josh Pollock <Josh@CalderaWP.com>
* @license GPL-2.0+
* @link
* @copyright 2016 CalderaWP LLC
*/
interface Caldera_Forms_Processor_Interface_Newsletter extends Caldera_Forms_Processor_Interface_Process {
... |
<?php
use App\Models\PaymentTerm;
class PaymentTermsSeeder extends Seeder
{
public function run()
{
Eloquent::unguard();
$paymentTerms = [
['num_days' => -1, 'name' => 'Net 0'],
];
foreach ($paymentTerms as $paymentTerm) {
if (! DB::table('payment_term... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLogoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logo', function (B... |
<?php
class Foo implements ArrayAccess
{
function offsetExists($offset) {/*...*/}
function offsetGet($offset) {/*...*/}
function offsetSet($offset, $value) {/*...*/}
function offsetUnset($offset) {/*...*/}
function fail()
{
$this['blah'];
}
function succeed()
{
$this;
$this['blah'];
}
}
$bar = new... |
@extends('adminlte::page')
@extends('layouts.datatables')
@section('title', 'Modifica Utente')
@section('content_header')
<div class="mt-3"></div>
@endsection
@section('content')
<div class="card card-outline card-pink">
<div class="card-header">
<h1>Modifica Autori</h1>
</div>
... |
<?php
/*
* This file is part of the core-library package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Quadratus\Model\Proprete;
use DateTime;
/**
* Chantiers reclamations employes... |
<?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\Tests\Component\HttpKernel\Fixtures\ExtensionLoadedBundle;
use ... |
<?php
namespace Elastica\Test\Query;
use Elastica\Document;
use Elastica\Query\Match;
use Elastica\Query\MatchPhrase;
use Elastica\Query\MatchPhrasePrefix;
use Elastica\Test\Base as BaseTest;
class MatchTest extends BaseTest
{
/**
* @group unit
*/
public function testToArray()
{
$field =... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\API\UserController;
use App\Http\Controllers\API\ProductController;
use App\Http\Controllers\API\ProductCategoryController;
/*
|--------------------------------------------------------------------------
| API Routes
|---... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class BookDealType extends Model
{
public $guarded = [];
public static function getIdByAlias($alias)
{
$book = self::where('alias', $alias)->first();
if ($book) {
return $book->id;
}
return null;
... |
<?php
namespace BoxedCode\Laravel\Auth\Challenge\Methods;
use BoxedCode\Laravel\Auth\Challenge\Contracts\Challengeable;
use BoxedCode\Laravel\Auth\Challenge\Exceptions\ChallengeVerificationException;
use BoxedCode\Laravel\Auth\Challenge\Generators\NumericTokenGenerator;
abstract class Method
{
/**
* Configu... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?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
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<div class="breadcrumbs">
<div class="container">
<ul class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">Shopping Cart</li>
</ul>
</div>
</div>
<div class="main">
<div class="container">
<div class="cart">
... |
<?php
namespace acme\sitioBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* comentarios
*/
class comentarios
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $nombre;
/**
* @var string
*/
private $comentario;
/**
* @var \DateTim... |
<?php
declare(strict_types=1);
namespace Khandurdyiev\MonoClient\Tests;
use PHPUnit\Framework\TestCase;
/**
* @psalm-suppress PropertyNotSetInConstructor
*/
class ExampleTest extends TestCase
{
public function testSimple(): void
{
self::assertTrue(true);
}
} |
<?php
namespace frontend\modules\wall\components;
use common\models\Comments;
use frontend\modules\wall\models\Wall;
use Yii;
use yii\redis\Connection;
class WallHelper
{
public static function deleteItem($user_id, $item_id){
$item = Wall::find()->where(['user_id' => $user_id])->orWhere(['from' => $use... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Device;
class UnlockController extends Controller
{
// public function __construct()
// {
// $this->middleware('auth');
// }
public function unlock(Request $request) {
$this->validate($request, [
... |
@extends("layouts.template")
@section('css')
<link rel="stylesheet" href="{{ asset('css/news/news.css') }}">
@endsection
@section('main')
<div class="container news-admin">
<form action="{{ isset($news) ? "/news/$news->id" : '/news' }}" method="POST">
@csrf
{{-- {{ method_field... |
<?php
/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Enterprise License (PEL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... |
<?php
$obj_date = new DateTime();
?>
<!-- begin:: Content -->
<div class="kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
<!-- begin:: Content Head -->
<div class="kt-subheader kt-grid__item" id="kt_subheader">
<div class="kt-container kt-container--fluid ">
<div ... |
<?php
namespace AvroToPhp\Commands;
use AvroToPhp\Compiler\Compiler;
use AvroToPhp\Util\Utils;
use LaravelZero\Framework\Commands\Command;
class Compile extends Command
{
protected $signature = 'compile {directory} {outputDirectory=./compiled} {--d|dry-run} {--namespace=}';
protected $description = 'Compil... |
<div id="wrapper">
<!-- Navigation -->
@extends('layouts.menuInvitado')
@section('content')
<div id="page-wrapper">
<div class="container-fluid" style="height: 100%">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12 tex... |
<style>
#salesorderproduk_simples{
display:none;
}
</style>
<!-- Table produk simple-->
<div style="font-size:12px;" class="card-body table-responsive p-0 pb-2">
<table style="font-size:12px; table-layout: fixed;" class="table dataTable display" id="salesorderproduk_simples">
<... |
<?php
namespace Fuel\Tasks;
class Mail {
public function send() {
\Package::load('email');
$quit_time = strtotime('4 minutes 45 seconds'); // 一定時間ごとにバッチを起動し直す
$finish_flg = false;
while(!$finish_flg) {
$entries = \Model_Mail_Queue::get_unsent_list(5);
foreach($entries as $entry) {
if($this->send... |
<?php
namespace Schruptor;
use Schruptor\Expectation\Expectation;
use Schruptor\Expectation\Expectations\ArrayExpectation;
use Schruptor\Expectation\Expectations\DefaultExpectation;
use Schruptor\Expectation\Expectations\InvertedExpectation;
use Schruptor\Expectation\Expectations\NumericExpectation;
use Schruptor\Expe... |
<?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\models;
use app\models\User;
use Yii;
/**
* This is the model class for table "tournament".
*
* @property int $id
* @property int $team_id
* @property string $event_name
* @property string $prize_pool
*
* @property Team $team
*/
class Tournament extends \yii\db\ActiveRecord
{
/**
... |
<?php
namespace App\Http\Controllers;
use App\Repositories\Interfaces\KelasKuliahRepository;
use Illuminate\Http\Response;
use stdClass;
class KelasKuliahController extends BaseController
{
/**
* @var KelasKuliahRepository
*/
protected $kelasKuliahRepository;
/**
* MataKuliahController ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.