text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Middleware;
use Closure;
use Session;
use App\Http\Traits\GeneralServices;
class CheckSession
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
use GeneralServices;
public ... |
<?php
declare(strict_types=1);
use App\User;
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
|... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Projects extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->session->set_userdata('current_page', 'Projects');
$this->load->model('admin/ProjectModel', 'proj_m');
$th... |
<!-- FOOTER -->
<footer id="footer-container">
<div id="footer">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="widget widget-text">
<div>
<p><img src="assets/images/logo-wh... |
<?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
namespace Phpactor\Extension\LanguageServerRename\Adapter\ClassMover;
use Amp\Promise;
use Phpactor\ClassMover\ClassMover;
use Phpactor\Extension\LanguageServerRename\Model\Exception\CouldNotConvertUriToClass;
use Phpactor\Extension\LanguageServerRename\Model\Exception\CouldNotRename;
use Phpactor\Extension\Lan... |
<?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
namespace App\Http\Requests;
use App\Http\Requests\Request;
class SaveTaskRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rul... |
<?php
namespace Williamson\TPLinkSmartplug\Laravel;
use Illuminate\Support\ServiceProvider;
use Williamson\TPLinkSmartplug\TPLinkManager;
class TPLinkServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Module extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'sys_modules';
/**
* The database primary key value.
*
* @var string
*/
protected $... |
<?php
/* @WebProfiler/Profiler/base.html.twig */
class __TwigTemplate_277852600515c15e5e93cf7eb72265213c78a604bc1a5643e28d71d27fe9752a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
/**
* WordPress eXtended RSS file parser implementations
*
* Code adapted from the "WordPress Importer" plugin.
*
* @package WordPress
* @subpackage Importer
*/
/**
* WordPress Importer class for managing parsing of WXR files.
*/
class TG_WXR_Parser {
function parse( $file ) {
// Attempt to use prope... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class MonnaieDevise extends Model
{
//
} |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTablePost extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->... |
<?php
declare(strict_types=1);
namespace Kishlin\Backend\RPGIdleGame\Character\Domain\View;
use Kishlin\Backend\Shared\Domain\View\JsonableView;
final class JsonableCharacterView extends JsonableView
{
private string $id;
private string $name;
private string $owner;
private int $skillPoints;
pri... |
@extends('layout.default')
@section('title', $__t('Products'))
@section('activeNav', 'products')
@section('viewJsName', 'products')
@section('content')
<div class="row">
<div class="col">
<div class="title-related-links">
<h2 class="title">@yield('title')</h2>
<div class="related-links">
<a class="btn bt... |
<?php
/*
* This file is part of Contao.
*
* (c) Leo Feyer
*
* @license LGPL-3.0-or-later
*/
namespace Contao;
/**
* Reads and writes news archives
*
* @property integer $id
* @property integer $tstamp
* @property string $title
* @property integer $jumpTo
* @property boolean $protected
* @property str... |
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Kernel\Event;
use Hyperf\Event\EventDispatcher;
use Psr\Container\C... |
<?php
class Sekolah extends CI_Model
{
public function getAll(){
$this->db->select('*');
$this->db->from('sekolah');
$query = $this->db->get();
return $query->result();
}
public function getAllsort(){
$this->d... |
<?php
/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load your controllers and models. This is use... |
<?php
return [
/*
* --------------------------------------------------------------------------
* External urls
* --------------------------------------------------------------------------
*
* The following external urls are used throughout the app
*
*/
"twitter" => "https://... |
<?php
namespace AliyunMNS\Traits;
use AliyunMNS\Model\Message;
use AliyunMNS\Traits\MessagePropertiesForPeek;
trait MessagePropertiesForReceive
{
use MessagePropertiesForPeek;
protected $receiptHandle;
public function getReceiptHandle()
{
return $this->receiptHandle;
}
public functi... |
<?php
namespace GestionFaenaBundle\Repository\faena;
/**
* ValorExternoRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ValorExternoRepository extends \Doctrine\ORM\EntityRepository
{
} |
<?php
/**
* @author Everett Morse
* Copyright (c) 2013 Everett Morse. All rights reserved.
* www.neptic.com
*
* A "model" in the REST API. This is like a controller for this conceptual type. Sub classes
* implement the create, update, etc. for single/plural GET/POST/PUT/DELETE requests.
*
* single GET -> fetch... |
@extends('layout.default')
@section('contents')
<form method="post" action="/student/save">
<div class="form-group">
<label>姓名</label>
<input type="text" name="name" class="form-control">
</div>
<div class="form-group">
<label>年龄</label>
<inpu... |
<div>
@if ($orders)
@forelse ($orders as $order)
<div class="card mb-3">
<div class="row p-3">
<div class="col-md-8 font-italic">
<div class="d-flex justify-content-around border-right">
<div class="row">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEssayPartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('essay_parts'... |
@if ($data['show'])
<!-- whatWeDo2C -->
<div class="container ">
<div class="row justify-content-center">
<div class="col-12 text-center">
<div class="section-title mb-4 pb-2">
@if ($data['tag']['show'])
<span class="badge bg-prima... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header"> <i class="bi bi-people"></i> {{ __('Users') }}</div>
<div class="card-body">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddUserIdToStudentTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('students', ... |
@extends('user.layout.fronLayout')
@section('content')
@if(Session::get('success')!='')
<div class="alert alert-success">
{{Session::get('success')}}
</div>
@endif
@if(Session::get('error')!='')
<div class="alert alert-danger">
{{Session::get('error')}}
</div>
@endif
<div class="middle-content account-section y... |
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Downloadable\Test\Block\Adminhtml\Product\Composite;
use Magento\Mtf\Fixture\FixtureInterface;
/**
* Class Configure
* Adminhtml downloadable product composite configure block
*/
class Configu... |
<?php
return array (
'<strong>Modify</strong> your profile image' => '<strong>Modificar</strong> tu imagen de perfil',
'Close' => 'Cerrar',
'Save' => 'Guardar',
'Select the area of your image you want to save as user avatar and click <strong>Save</strong>.' => 'Elige el área de tu imagen que quieres guardar com... |
@extends('admin')
@section('judul_admin')
Tambah Agenda
@endsection
@section('content_admin')
<main>
<p class="caption">
<h3 class="header">Tambah Agenda</h3>
<div class="row">
<form class="col s12" METHOD="post" action="">
<div class="row">
<!-- <div class="input-field col s12 m4 center-on-small-onl... |
<?php
namespace PWWEB\Core\Requests;
use Illuminate\Foundation\Http\FormRequest;
use PWWEB\Core\Models\Role;
/**
* PWWEB\Core\Requests\CreateRoleRequest CreateRoleRequest.
*
* The create request class for the Role
* Class CreateRoleRequest
*
* @author Frank Pillukeit <frank.pillukeit@pw-websolutions.com>
*... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\Blog;
use App\Http\Requests\BlogRequest;
class BlogController extends Controller
{
/*
* ブログ一覧を表示する
*
* @return view
*/
public function showList()
{
$blogs = Blog::a... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Login extends Authenticatable
{
protected $fillable = ['usuario', 'constraseña'];
public function persona() {
return $this->belongsTo("App\Persona");
}
} |
<?php
namespace Craft;
class InstaBlog_UninstallController extends BaseController
{
public function actionRun()
{
$this->requirePostRequest();
craft()->userSession->requireAdmin();
if (craft()->instaBlog_uninstall->run())
{
craft()->userSession->setNotice(Craft::t('... |
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.6
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - March 2006
// http://www.phpconcept.net
// -------------------------... |
<?php
use App\Mail\TestMail;
use App\Models\User;
use App\Notifications\SubscribeNotification;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|-------------------------------------------------------... |
--TEST--
Exhaustive test of Shift-JIS DoCoMo, KDDI, SoftBank encoding verification and conversion
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
?>
--FILE--
<?php
srand(818); /* Make results consistent */
include('encoding_tests.inc');
mb_substitute_character(0x25); // '%... |
<?php
if (! function_exists('class_basename')) {
/**
* Get the class "basename" of the given object / class.
*
* @param string|object $class
* @return string
*/
function class_basename($class)
{
$class = is_object($class) ? get_class($class) : $class;
return base... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\Aut... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Faq extends Model
{
protected $table = "faqs";
} |
<?php
namespace App\Http\Controllers\Admin;
use App\Models\Book;
use App\Models\Model;
use App\Models\BooksItem;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class BooksController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Respon... |
<?php
namespace Psalm\Storage;
use Psalm\CodeLocation;
use Psalm\Internal\Analyzer\ClassLikeAnalyzer;
use Psalm\Type;
class PropertyStorage
{
use CustomMetadataTrait;
/**
* @var ?bool
*/
public $is_static;
/**
* @var int
*/
public $visibility = 0;
/**
* @var CodeLoc... |
<?php
$category = [
1 => '架构',
'互联网',
'运维',
'数据库',
'前端',
'后端',
'研发管理',
'安全',
'区块链',
'资讯',
'计算机理论与基础',
'其他',
];
$description = str_replace('[TOC]', '', $data->content_html_code);
$description = mb_substr(str_r... |
@extends('layouts.app')
@section('content')
<editar-entradas-component :role_id="{{auth()->user()->role_id}}" :registersall="{{$entradas}}" :editoriales ="{{$editoriales}}"></editar-entradas-component>
@endsection |
<?php
namespace tjpx\helper;
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* BaseInflector provides concrete implementation for [[Inflector]].
*
* Do not use BaseInflector. Use [[Inflector]] instead.
*
* @autho... |
<?php
/**
* Created by PhpStorm.
* User: php_r
* Date: 25.2.2018
* Time: 19.52
*/
namespace eXpansion\Framework\GameCurrencyBundle\Plugins\Gui;
use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
use eXpansion\Framework\Core\Model\Gui\Window;
use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext;
u... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class SomeJsonResource extends JsonResource
{
public static $wrap = '';
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public funct... |
@extends('layouts.app')
@section('content')
<!--breadcrumbs area start-->
<div class="breadcrumbs_area mt-45">
<div class="container">
<div class="row">
<div class="col-12">
<div class="breadcrumb_content">
<ul>
... |
<?php
namespace zxf\Wechat\Payment\Address;
use zxf\Wechat\Bridge\Util;
use zxf\Wechat\Bridge\Serializer;
use zxf\Wechat\OAuth\AccessToken;
class ConfigGenerator
{
/**
* zxf\Wechat\OAuth\AccessToken.
*/
protected $accessToken;
/**
* 构造方法.
*/
public function __construct(AccessToke... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Carbon\Carbon;
class PasswordReset extends Model
{
use HasFactory;
protected $table = 'password_resets';
public $timestamps = false;
protected ... |
<?php
/* modular/hero.html.twig */
class __TwigTemplate_16d581197715cebd24bf1df9039ce2f437ed6cdedfb35cdabe7f0947bdcc3ab9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class OrdersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$orders = [
[
'invoice'=> 'Rp25000',
'customer_id'=>... |
<?php
declare(strict_types=1);
namespace Crossjoin\Browscap\Exception;
/**
* Interface SourceException
*
* @package Crossjoin\Browscap\Exception
* @author Christoph Ziegenberg <ziegenberg@crossjoin.com>
* @link https://github.com/crossjoin/browscap
*/
interface SourceException extends BrowscapException
{
} |
<?php
ob_start();
session_start();
include("connect/db.php"); //Establishing connection with our database
//Variable for storing our errors.
if(isset($_POST["btn-login"]))
{
if(empty($_POST["password"]) || empty($_POST["email"]))
{
echo '<div class="alert alert-warning"> Enter Your Email & Passwor... |
<?php
/* WebProfilerBundle:Collector:config.html.twig */
class __TwigTemplate_3c11ac735f21c3932195fc9600248402bf35b7ed465d4e9b8c76ecae040bafa3 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->pare... |
<?php
/**
* Created by Reliese Model.
* Date: Sat, 26 May 2018 17:09:49 +0000.
*/
namespace App\Models;
use Reliese\Database\Eloquent\Model as Eloquent;
/**
* Class User
*
* @property int $id
* @property string $Name
* @property string $Dob
* @property string $Gender
* @property string $Username
* @prop... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSekolahsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sekolahs', fun... |
<?php
namespace Corma\Test\Repository;
use Corma\DataObject\ObjectManager;
use Corma\DataObject\ObjectManagerFactory;
use Corma\ObjectMapper;
use Corma\QueryHelper\QueryHelper;
use Corma\Test\Fixtures\Caching;
use Corma\Test\Fixtures\Repository\CachingRepository;
use Corma\Util\LimitedArrayCache;
use Doctrine\Common\C... |
<?php
$conf=json_decode(file_get_contents("../config.json"));
if(!$conf)die('No Config');
$weather=json_decode(file_get_contents($conf->weather->cache));
$daystr=array('(今天)','(明天)','(后天)');
echo '<div><span>空气质量:</span>';
echo '<span>'.$weather->data[0]->air.' '.$weather->data[0]->air_level.'</... |
<?php
/**
* This file is part of the OpenPNE package.
* (c) OpenPNE Project (http://www.openpne.jp/)
*
* For the full copyright and license information, please view the LICENSE
* file and the NOTICE file that were distributed with this source code.
*/
class openpneSendDailyNewsTask extends opBaseSendMailTask
{
... |
<?php
return [
'api' => [
/*
|--------------------------------------------------------------------------
| Edit to set the api's title
|--------------------------------------------------------------------------
*/
'title' => 'L5 Swagger UI',
],
'routes' => ... |
@extends('layouts.master')
@section('title', 'PPDB - Dashboard')
@section('content')
@if(auth()->user()->role_name == "admin")
<div class="app-page-title">
<div class="page-title-wrapper">
<div class="page-title-heading">
<div class="page-title-icon">
<i class=" pe-7s-albums icon... |
<?php
namespace ArneHendriksen\LaravelBreadcrumb;
class Breadcrumb
{
protected $items = [];
public function reset()
{
$this->items = [];
}
public function exists()
{
return count($this->items) > 0;
}
public function get()
{
return $this->items;
}
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:... |
<?php
/*
* This file is part of the her-cat/baidu-map.
*
* (c) her-cat <i@her-cat.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace HerCat\BaiduMap\WebApi\Timezone;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
/**
... |
<br> <!--untuk memberi jeda header dan konten main-->
<!--==========================
Article Section
============================-->
<section id="features" class="padd-section text-center wow fadeInUp">
<div class="container">
<div class="row justify-content-between">
<div class="col-md-aut... |
<?php
/* @WebProfiler/Profiler/base_js.html.twig */
class __TwigTemplate_947c22f52166541b2bc2cd9a1b78277330e829355374a3c480f57fbc0768a4c3 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... |
<x-admin-master>
@section('content')
<div class="row ">
<div class="col-lg-12">
<h1>Edit Permission: {{$permission->name}}</h1>
<form method="post" action="{{route('permission.update', $permission->id)}}" enctype="multipart/form-data">
@csrf
{{-- The method tells laravel we want to update the role ... |
<?php
namespace App\Http\Controllers\Client;
use App\Http\Controllers\Controller;
use App\Http\Requests\Auth\LoginRequest;
use App\Models\Currency;
use App\Models\Tax;
use App\Providers\RouteServiceProvider;
use App\Traits\HCaptcha;
use Illuminate\Http\Request;
class LoginController extends Controller
{
use HCap... |
<?php
namespace api\dao;
use api\data\ActiveDataProvider;
use api\models\video\Recommend;
use api\models\video\Video;
use api\models\video\VideoChapter;
use api\helpers\Common;
use common\helpers\RedisKey;
use common\helpers\RedisStore;
use yii\helpers\ArrayHelper;
use Yii;
class RecommendDao extends BaseDao
{
/*... |
<section class="main">
<div>
<h2>A Propos</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc massa tortor, viverra vel nisl in, tempor tempus purus.
Nam sagittis placerat porttitor. Cras nisl ex, mattis interdum dui at, tristique blandit ligula.
Morbi et... |
<div class="row">
<div class="col-xs-12">
<div class="card card-no-bottom-line">
<div class="card-body">
<div class="form-horizontal form-modal-left">
<div class="form-group">
<label for="name" class="col-sm-4 control-label">NOMBRE DEL... |
@extends('layouts.admin')
@section('content')
<div class="content">
@if ($message = Session::get('ops!'))
<div class="alert alert-danger">
<p>{{$message}}</p>
</div>
@endif
@if ($message = Session::get('success'))
<div... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use App\Model\CartShopping;
use App\Model\product;
use App\Model\category;
use App\Model\contacts;
use App\Model\logo;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class ProductByCategoryController extends Contro... |
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-file-alt"></i>
<?= $title ?>
<a href="<?= site_url('admin/kategori')?>" class="btn btn-primary btn-sm float-right"><span><i class="fas fa-arrow-left"></i></span> Kembali</a>
</div>
<div class="card-body">
<form action="<?= site_... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Medicines */
$this->title = 'Create Medicines';
$this->params['breadcrumbs'][] = ['label' => 'Medicines', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="medicines-create">
<h1><?= Html::encode... |
<?php
final class PhabricatorAccessLog {
static $log;
public static function init() {
// NOTE: This currently has no effect, but some day we may reuse PHP
// interpreters to run multiple requests. If we do, it has the effect of
// throwing away the old log.
self::$log = null;
}
public static... |
<?php
session_start();
unset($_SESSION['admin_id']);
session_destroy();
header("Location: pages_index.php");
exit; |
<?php
declare(strict_types=1);
namespace Edde\Job;
trait JobProgressFactoryTrait {
/** @var JobProgressFactory */
protected $jobProgressFactory;
/**
* @Inject
*
* @param JobProgressFactory $jobProgressFactory
*/
public function setJobProgressFactory(JobProgressFactory $jobProgressFactory): void {
$this... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Libperangkatjabatan extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('libperangkatjabatans', function (Blueprint $table) {
... |
<?php
return [
'templates' => [
'map' => [],
'paths' => [
'report' => [__DIR__ . '/../../templates/page']
]
],
'view_helpers' => [
// zend-servicemanager-style configuration for adding view helpers:
// - 'aliases'
// - 'invo... |
<?php
declare(strict_types=1);
namespace WordPress\Tests\WpPosts;
use PHPUnit\Framework\TestCase;
use WordPress\Database\DatabaseException;
use WordPress\WpPosts\{ WpPostsDto, IWpPostsRepository, WpPostsRepository };
class WpPostsRepositoryTest extends TestCase
{
private $db;
private $result;
private ar... |
<?php
use Podlove\Model;
use Podlove\Geo_Ip;
add_action( 'wp', 'podlove_handle_media_file_download' );
add_action( 'podlove_download_file', 'podlove_handle_media_file_tracking' );
function podlove_get_query_var($var_name) {
if (isset($_GET[$var_name])) {
return $_GET[$var_name];
} else {
return get_query_var($v... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Json library
* @class Preferencetype_controller
* @version 13-12-2017 11:53:35
*/
class Preferencetype_controller {
function read() {
$page = getVarClean('page','int',1);
$limit = getVarClean('rows','int',5);
... |
<?php
$form = \yii\bootstrap\ActiveForm::begin();
echo $form->field($model,'name');
echo $form->field($model,'intro')->textarea();
echo $form->field($model,'sort');
if($model->status!=-1){
echo $form->field($model,'status',['inline'=>true])->radioList([1=>'正常',0=>'隐藏']);
}else{
echo $form->field($model,'status'... |
@extends('layouts/admin')
@section('content')
<!--面包屑导航 开始-->
<div class="crumb_warp">
<!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台,建站的首选工具。-->
<i class="fa fa-home"></i> <a href="{{url('admin/info')}}">Home</a> » Useful Links
</div>
<!--面包屑导航 结束-->
<!--结果集标题与导航组件 开始-->
<div class... |
<?php namespace Example\Chinook\Customers;
class Collection extends \Clean\Data\Collection
{
} |
<?php
namespace App\Model\WorkPermit;
use App\Lib\SHCSLib;
use App\Model\View\view_user;
use Illuminate\Database\Eloquent\Model;
use Lang;
class wp_work_workitem extends Model
{
/**
* 使用者Table:
*/
protected $table = 'wp_work_workitem';
/**
* Table Index:
*/
protected $primaryKey =... |
<?php
namespace PubNub\Endpoints\ChannelGroups;
use PubNub\Endpoints\Endpoint;
use PubNub\Enums\PNHttpMethod;
use PubNub\Enums\PNOperationType;
use PubNub\Exceptions\PubNubValidationException;
use PubNub\Models\Consumer\ChannelGroup\PNChannelGroupsAddChannelResult;
use PubNub\PubNubUtil;
class AddChannelToChannelGr... |
<?php
namespace OCA\ContactsToFb\Lib;
use \OC\Log;
use \OCA\Contacts\Utils\JSONSerializer;
use \libphonenumber\PhoneNumberUtil;
use \libphonenumber\PhoneNumberFormat;
/**
* Service for syncing the contacts.
*
* @author Jan Thomas <jan.thomas@rwth-aachen.de>
* @copyright Jan Thomas 2014
* @license https://github... |
@extends('layouts.app')
@section('content')
<div class="background background-home"></div>
<div class="container">
<div class="row">
<div class="col-sm-offset-7 col-sm-4">
@include('auth.login-partial')
</div>
</div>
</div>
@endsection |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit30c930fc12886778dbed95f4acd675e3
{
public static $prefixLengthsPsr4 = array (
'A' =>
array (
'AmoCRM\\' => 7,
),
);
public static $prefixDirsPsr4 = array (
... |
<?php
/** @noinspection PhpUndefinedClassInspection */
use App\Configs;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
class ConfigHasFFmpeg extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
defined('BOOL') or define('BOOL', '0|1');... |
<?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... |
<?php
namespace App\Http\SaidTech\Repositories\BoxStatusRepository;
use Prettus\Repository\Eloquent\BaseRepository;
class BoxStatusRepository extends BaseRepository {
/**
* Specify Model class name
*
* @return string
*/
function model()
{
return "App\\BoxStatus";
}
} |
<?php
use PHPCodec\PHPCodec;
PHPCodec::registerCodec('msgpack');
PHPCodec::registerCodec('ini');
PHPCodec::registerCodec('json');
PHPCodec::registerCodec('phpserialize');
PHPCodec::registerCodec('php');
//low priority
PHPCodec::registerCodec('lua');
//CSV Codec must be the last item
PHPCodec::registerCodec('csv'); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.