text stringlengths 2 1.03M |
|---|
<?php
use yii\helpers\Url;
?>
<h1>Товары</h1>
<div class="row">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="list-group">
<?php foreach ($categories as $key => $value): ?>
<a href="<?= Url::to(['product/list','category'=>$value['sid']]) ?>" class="list-group-item"><?= $value['header'] ?></... |
<?php
class SimplePie_First_Item_Title_Test_RSS_090_DC_10_Title extends SimplePie_First_Item_Title_Test
{
function data()
{
$this->data =
'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" xmlns:dc="http://purl.org/dc/elements/1.0/">
<item>
<dc:titl... |
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://localhost:8000/info" />
</head>
<body>
<h3>Redirecting...</h3>
</body>
</html> |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integr... |
<?php
/**
* PublicKeyLoader
*
* Returns a PublicKey or PrivateKey object.
*
* @category Crypt
* @package PublicKeyLoader
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2009 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpsecl... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Product;
use App\Order;
class CartController extends Controller
{
public function add($id)
{
$product = Product::find($id);
\Cart::add(array(
'id' =>$product->id,
'name' => $product->title,
'price' => $p... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* ZYA CBT
* Achmad Lutfi
* achmdlutfi@gmail.com
* achmadlutfi.wordpress.com
*/
class Userlevel_model extends CI_Model{
function save($data){
$this->db->insert('user_level', $data);
}
function delete($level){
... |
<?php
/**
* MyInputFilters class Test
*
* @group App
*/
class myinputfilter_Test extends TestCase
{
public function test_check_encoding_SJIS文字列を検証すると例外が発生()
{
$this->setExpectedException(
'HttpInvalidInputException', 'Invalid input data'
);
$input = mb_convert_encoding('SJISの文字列です', 'SJIS');
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class OrderRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... |
<?php
// +----------------------------------------------------------------------
// | 微信管理系统
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2017 All rights reserved.
// +----------------------------------------------------------------------
// | Author:
// +---------... |
<?php
/**
* Class CommunicationHandler
*
* Please inherit from this class and override method 'throwException'
*
* @author Rene Roepke
*
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class CommunicationHandler {
const CODE_SUCCESS = 'success';
const CODE_FAIL = 'fail';
... |
<?php
function testMemberPrimaryPrefixGraphWithDynamicClassAndDynamicMethod($class, $method)
{
return $class::$method(23);
} |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Client */
$this->title = 'Update Client: {nameAttribute}';
$this->params['breadcrumbs'][] = ['label' => 'Clients', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->idclient, 'url' => ['view', 'id' => $mo... |
<?php
// UserBundle/Services/userService.php
namespace La\UserBundle\Services;
use Doctrine\ORM\EntityManager;
class userService
{
private $userId;
private $newFriendId;
protected $em;
public function __construct(EntityManager $em, $userId, $newFriendId){
$this->userId = $userId;
$this->ne... |
@extends('admin.layout.app-admin')
@section('content')
<h1>Create category</h1>
<div class="card mb-5 border-primary">
<div class="row no-gutters">
<div class="offset-2 col-8 offset-2">
<div class="card-body">
<form method="post" action="{{ route('admin.ca... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<ul class="list-unstyled">
@foreach ($replies as $index => $reply)
<li class=" media" name="reply{{ $reply->id }}" id="reply{{ $reply->id }}">
<div class="media-left">
<a href="{{ route('users.show', [$reply->user_id]) }}">
<img class="media-object img-thumbnail mr-3" alt="{{ $reply->user-... |
<?php
namespace Whatsdue\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\ExclusionPolicy;
use JMS\Serializer\Annotation\Expose;
/**
* Message
*
* @ORM\Table(name="message")
* @ORM\Entity
* @ORM\HasLifecycleCallbacks()
* @ExclusionPolicy("all")
*/
class Message
{
/**
... |
<!-- Vertically Center -->
<div wire:ignore.self class="modal fade" id="userModal" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="userModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl " role="document">
<div class="modal-content ">
<div class="mod... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Rewards extends MY_BackendController {
public function __construct(){
parent::__construct();
$this->unit = '已獎勵事項';
$this->abrv = 'reward_';
$this->load->model('Rewards_model', 'models');
$this->load->model('RewardsFile_model', 'fil... |
@extends('user.layouts.panel')
@section('title','My ingredients')
@section('right-panel')
<div class="mar-auto">
<!--<div class="row mt-3">-->
<div class="col-11 offset-sm-1 mx-auto text-center">
<div class="alert alert-warning mb-5" role="alert">
<h5 class="a... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\ResourceCollection;
class TaskCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArra... |
<?php
namespace App\Logics\Repositories\src;
use App\Logics\Models\SignLog;
use App\Logics\Repositories\Repository;
use Illuminate\Support\Facades\Cache;
class SignLogRepository extends Repository {
public function model() {
return SignLog::class;
}
/**
* 获取最近一次签到信息
* @param int $user_id
* @param bo... |
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once 'config.php';
use Radowoj\Yaah\Auction;
use Radowoj\Yaah\Constants\AuctionTimespans;
use Radowoj\Yaah\Constants\AuctionFids;
use Radowoj\Yaah\Constants\SaleFormats;
use Radowoj\Yaah\Constants\ShippingPaidBy;
use Radowoj\Yaah\Constants\PaymentForms;... |
@extends('admin.master')
@section('body')
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Category Information</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="pan... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Dog extends Model
{
public function user(){
return $this->belongsTo('\App\User');
}
public function photos(){
return $this->hasMany('\App\Photo');
}
public function likes(){
return $this->belongsToMany('A... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class hc_data_back extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'backup:all_database';
/**
* The console command description.
*
* @... |
@csrf
<div class="row mx-2 mt-3">
<div class="col-5 gx-2 ">
<div class="create-frm rounded px-2 pt-2">
<div class="row ">
<div class="col-12 mb-2 ">
<div class="py-2 w-75 m-auto">
<div class="my-2 d-flex">
<... |
@extends('layouts.app')
@section('head')
<link href="{{ asset('dist/frontend/module/tour/css/tour.css?_ver='.config('app.version')) }}" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ asset("libs/ion_rangeslider/css/ion.rangeSlider.min.css") }}"/>
@endsection
@section('content')
<div class... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Employee extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'EmpFirstName', 'EmpLastName','UserName', 'UserPassword','EmpEmail',
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use JWTAuth;
use Tymon\JWTAuth\Exceptions\JWTException;
class UserController extends Controller
{
public function authenticate(Request $request)
... |
@extends('admin.layouts.master')
@section('content')
<div class="content">
<!-- Vertical form options -->
<div class="row">
<div class="col-md-12">
<!-- Basic layout-->
<div class="card">
<div class="card-header header-elements-inline">
<h5 class="card-title">Product Add</h5>
... |
<?php
namespace Database\Factories;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPromoCodeToOrders extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('orders', funct... |
<?php
namespace Faker\Test\Provider;
use Faker\Generator;
use Faker\Provider\Company;
use Faker\Provider\Internet;
use Faker\Provider\Lorem;
use Faker\Provider\Person;
class InternetTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Generator
*/
private $faker;
public function setUp()
{... |
<?php
namespace App\Console;
use App\Jobs\SendMail;
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 = ... |
<?php
namespace App\Models;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Food extends Model
{
use HasApiTokens, HasFactory, Notifiable;
protected $fillable = [
'food_na... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$a... |
--TEST--
Test basic call_user_func
--INI--
--SKIPIF--
<?php
if (!extension_loaded("ytrace")) print "skip";
if (!version_compare(phpversion(), "7.0", '<')) print "skip >= PHP 7.0";
?>
--FILE--
<?php
$tf = sys_get_temp_dir() . '/'. uniqid('yt', TRUE);
ytrace_enable($tf);
function foo($a, $b) {
$c = $a;
$d = $b;
}
clas... |
<!DOCTYPE html>
<html>
<head>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Boo... |
<?php
namespace Tests;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Laravel\Dusk\TestCase as BaseTestCase;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Prepare for D... |
<?php
/**
* ResourceLoader module for populating language specific data.
*
* 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 2 of the License, or
* (at your option) any later ... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
/**
* 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... |
<header class="jumbotron" style="box-shadow: 1px 1px 1px rgba(45,45,45,.5)">
<div class="container">
<div class="col-md-10">
<p><b>loGo</b></p>
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<p><a class="btn btn-primary b... |
<?php
namespace App\Http\Controllers\admin\category;
use Illuminate\Http\Request;
use App\Category;
use App\Course;
use App\Http\Controllers\Controller;
use Illuminate\Support\Str;
class CategoryController extends Controller
{
public function index()
{
$category = Category::latest()->paginate(5);
... |
<?php
namespace App\ItemType\SimpleExpense;
use App\ItemType\SummaryResourceTypeResponse as BaseSummaryResourceTypeResponse;
use App\Request\Validate\Boolean;
use Illuminate\Http\JsonResponse;
class SummaryResourceTypeResponse extends BaseSummaryResourceTypeResponse
{
public function __construct(
int $re... |
<?php
class Kwf_Assets_Dependency_Dependencies extends Kwf_Assets_Dependency_Abstract
{
protected $_name;
public function __construct(array $dependencies, $name = null)
{
$this->setDependencies(self::DEPENDENCY_TYPE_REQUIRES, $dependencies);
$this->_name = $name;
}
public function ... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v2/common/targeting_setting.proto
namespace Google\Ads\GoogleAds\V2\Common;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Settings for the t... |
@extends('layouts.master')
@section('content')
<div class="container">
{{-- <div class="container bandb">
<img src="images/heroes/bb_h.jpg" class="img-responsive">
<div class="row">
<div class="col-md-6 no-gutters-left">
<div class="image-placeholder"... |
<?php
namespace App;
use App\Notifications\ThreadWasUpdated;
use Illuminate\Database\Eloquent\Model;
class ThreadSubscription extends Model
{
protected $fillable = ['user_id'];
public function user()
{
return $this->belongsTo(User::class);
}
public function thread()
{
return... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Log */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="log-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->errorSummary($model); ?>
<?= $form->field($model, 'id', ['templa... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Weather VN</title>
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
<link href="https://maxcd... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s... |
<?php
namespace App\Http\Controllers\Api\Sessions;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SessionsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
... |
<?php
namespace PandaShop\ShopBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* Slide
*
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class SeedArticleCategoriesData extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$categories = [
... |
<?php
namespace Eeric2eric\SenangPay;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
const CONFIG_PATH = __DIR__ . '/../config/senang-pay.php';
public function boot()
{
$this->publishes([
self::CONFIG_PATH => config_path('senang-pay.php'),
], 'config');
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class blog extends Model
{
protected $fillable = ['category_id','blog_title','blog_short_description','blog_long_description','blog_image','publication_status'];
} |
<div class="list-icons list-icons-extended">
<a href="{{route($route.'.show',[$item->id])}}{{getRouteParameters()}}"
class="list-icons-item" data-popup="tooltip"
title="{{trans('app.view')}}">
<i class="icon-eye"></i>
</a>
@if($route == "gifs")
@php($favs = App\Favorite::where... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... |
<?php
/**
* Special version of htmlspecialchars
* @param string $string
* @return string
*/
function htmlchars($string = "")
{
return htmlspecialchars($string, ENT_QUOTES, "UTF-8");
}
/**
* Truncate string
* @param string $string
* @param integer $max_length Max length of result
* @param stri... |
<?php
declare(strict_types=1);
namespace Ezyt\MonologBD\Tools;
use Doctrine\DBAL\Driver\Connection;
use Symfony\Component\Console\Style\OutputStyle;
final class Initializer implements InitializerInterface
{
private $connection;
private $tables;
private $transactional;
public function __construct(Co... |
<?php
namespace cursos\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
} |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use yii\helpers\Url;
use yii\widgets\Menu;
use yii\bootstrap\Modal;
use common\models\Notification;... |
<?php
declare(strict_types=1);
/**
* This file is part of the Elastic App Search PHP Client package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Elastic\AppSearch\Client\Connection\Handler;
use GuzzleHttp\Ring\Core;... |
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle n... |
<?php
namespace Slender;
use Slender\Core\Autoload\MultiFormatAutoloader;
use Slender\Core\Autoload\PSR4;
use Slender\Core\ModuleLoader\ModuleLoader;
use Slender\Core\ModuleResolver\DirectoryResolver;
use Slender\Core\ModuleResolver\NamespaceResolver;
use Slender\Core\ModuleResolver\ResolverStack;
use Slender\Core\Con... |
<?php
namespace mpyw\HardBotter\Traits;
use mpyw\Co\Co;
trait InterceptorTrait
{
abstract public function getClient();
abstract public function getGetErrorMode();
abstract public function getPostErrorMode();
abstract public function getMarkedStatusIds();
abstract public function getBackLimitSecon... |
<?php
namespace dcai;
/**
* @copyright Dongsheng Cai {@see http://dongsheng.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
require_once(dirname(__DIR__) . '/vendor/autoload.php');
/**
* Simple XMLRPC client
*
* @copyright Dongsheng Cai {@see http://dongsheng.org}
* @license ... |
<?php
namespace Webkul\Admin\DataGrids\Activity;
use Illuminate\Support\Facades\DB;
use Webkul\UI\DataGrid\DataGrid;
use Webkul\User\Repositories\UserRepository;
class ActivityDataGrid extends DataGrid
{
/**
* UserRepository object
*
* @var \Webkul\User\Repositories\UserRepository
*/
prot... |
<?php
/**
* @link https://coinsence.org/
* @copyright Copyright (c) 2020 Coinsence
* @license https://www.humhub.com/licences
*
* @author Daly Ghaith <daly.ghaith@gmail.com>
*/
use humhub\libs\Iso3166Codes;
use humhub\modules\ui\form\widgets\DatePicker;
use humhub\modules\xcoin\assets\Assets;
use humhub\modules\... |
<?php
/**
* @see https://github.com/mezzio/mezzio-platesrenderer for the canonical source repository
* @copyright https://github.com/mezzio/mezzio-platesrenderer/blob/master/COPYRIGHT.md
* @license https://github.com/mezzio/mezzio-platesrenderer/blob/master/LICENSE.md New BSD License
*/
declare(strict_typ... |
<?php
namespace Tests\Koded\Http\Client;
use Koded\Http\Interfaces\{HttpRequestClient, HttpStatus};
use Koded\Http\Uri;
use function Koded\Http\create_stream;
/**
* Trait ClientTestCaseTrait ensures some consistent behaviour
* across the HTTP client implementations.
*
*/
/**
* @group internet
*/
trait ClientT... |
<?php
/**
* Created by PhpStorm.
* Author: Wai Yan Aung
* Date: 7/15/2016
* Time: 5:18 PM
*/
namespace App\Backend\Infrastructure\Forms;
use App\Http\Requests\Request;
class CartypeEntryRequest extends Request
{
public function authorize()
{
return true;
}
public function rules()
{... |
@extends('user_order.wrapper')
@section('wrapper-content')
<form action="{{ route('order_items.create') }}" method="get">
<div class="form-group">
<label for="date" class="col-form-label-sm">
{{__('Date')}}
</label>
<input type="date"
... |
<?php
declare(strict_types=1);
/**
* Hoa
*
*
* @license
*
* New BSD License
*
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
<?php
/**
* This file is part of Totara Learn
*
* Copyright (C) 2020 onwards Totara Learning Solutions LTD
*
* 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 Licens... |
<?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 class="flash-message">
@foreach (['danger', 'warning', 'success', 'info', ''] as $msg)
@if(Session::has('alert-' . $msg))
<p class="alert alert-{{ $msg }} text-center">{{ Session::get('alert-' . $msg) }} <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a></p>
@endif
@endforeach
... |
<?php
namespace App\Http\Controllers;
use DB;
use App\Models\User;
use App\Models\FriendRequest;
use Illuminate\Http\Request;
class FriendRequestsController extends Controller
{
public function index()
{
$user = auth()->user();
return view('friend-requests.index', [
'incoming' =>... |
<?php
namespace App\Http\Controllers;
use App\Models\Page;
use App\Models\JoinTeam;
use Illuminate\Http\Request;
class TeamController extends Controller
{
public function getIndex()
{
$model = new Page();
$row = $model->where('code', 'join-our-team')->first();
return view('team', compact('row'));
... |
<?php
declare(strict_types=1);
namespace Thomasderooij\LaravelModules\Tests\Services\ModuleStateRepository;
class GetModulesTrackerKeyTest extends ModuleStateRepositoryTest
{
private $method = "getModulesTrackerKey";
public function testGetModulesTrackerKey () : void
{
// If I have a method to a... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20141227221101 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migratio... |
<?hh
class Test {
function __construct() {
ob_start(
varray[
$this, 'transform'
]
);
}
<<__DynamicallyCallable>> function transform($buffer) {
return 'success';
}
}
<<__EntryPoint>> function main(): void {
$t = new Test;
echo "failure";
} |
<?php
/**
* Created by PhpStorm.
* User: Morphinof
* Date: 15/12/2017
* Time: 22:12
*/
namespace Rebelion\Traits;
use Doctrine\ORM\Mapping as ORM;
trait RoundTrait
{
} |
<?php
namespace app\api\controller;
use think\Request;
use think\facade\Cache;
use app\common\model\Feedback as FeedbackModel;
use app\common\controller\ApiBase;
class Feedback extends ApiBase
{
protected $noNeedLogin = [];
/**
* 保存意见反馈表单
*
*/
public function create(Request $request)... |
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:72:"D:\phpStudy\WWW\tp\public/../application/install\view\install\step1.html";i:1496373782;s:70:"D:\phpStudy\WWW\tp\public/../application/install\view\public\base.html";i:1496373782;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCommentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('comments', fun... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- META -->
<?php $this->load->view('psmsbackend/template/meta'); ?>
<!-- END META -->
<!-- Core CSS -->
<?php $this->load->view('psmsbackend/template/head_css'); ?>
<!-- END Core CSS -->
<!-- Page Level CSS -->
... |
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Hash;
use Tests\TestCase;
class AuthTest extends TestCase
{
use WithFaker;
/** @test */
public function testCanCreateUser()
{
$name = $this->faker->name;
$e... |
<?php declare(strict_types = 1);
namespace PharIo\Phive;
interface HttpProgressHandler {
public function start(Url $url);
public function finished();
/**
* Method is called with updates from transfers (upload/download)
* Return false to signal the http client to abort the transfer, true to cont... |
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Blossom_Feminine
*/
if ( ! is_active_sidebar( 'sidebar' ) ) {
return;
}
?>
<aside id="secondary" class="widget-area" itemscope itemtype="http://schema.o... |
<?php
namespace backend\controllers;
use Yii;
use backend\models\BlogCategories;
use backend\models\BlogCategoriesSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* BlogCategoriesController implements the CRUD actions for BlogCategories model.
*/
class BlogCategori... |
<div>
This is the add value 1 page
</div> |
<?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 Rankfoundry\eBaySDK\RelatedItemsManagement\Types;
/**
*
* @property \Rankfoundry\eBaySDK\RelatedItem... |
@extends('layouts.layout')
@section('content')
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-8 col-md-7 col-sm-6">
<h1>Import Accounts</h1>
</div>
</div>
</div>
@include('partials.notification')
{{ Form::open(array('action' => array('AccountController@upload'), 'class' => ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.