text stringlengths 2 1.03M |
|---|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MyFavourite extends Model
{
use HasFactory;
} |
<?php
namespace TelegramBot\Api\Types;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;
class ArrayOfPhotoSize extends BaseType implements TypeInterface, \ArrayAccess, \Iterator
{
protected $container = [];
protected $position = 0;
public static function fromResponse($data)
{
... |
<?php
namespace WP2StaticGuzzleHttp\Psr7;
final class Query
{
/**
* Parse a query string into an associative array.
*
* If multiple values are found for the same key, the value of that key
* value pair will become an array. This function does not parse nested
* PHP style arrays into an as... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PostCategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* G... |
<?php
use yii\helpers\Url;
return [
[
'class' => 'kartik\grid\CheckboxColumn',
'width' => '20px',
],
[
'class' => 'kartik\grid\SerialColumn',
'width' => '30px',
],
[
'label' => 'Vendor name',
'value' => function($model) { return $model->vendor->name... |
@extends('layouts.app')
@section('content')
@include('layouts.success')
<div class="card uper">
<div class="card-body">
@include('layouts.errors')
@include('layouts.form')
</div>
</div>
@endsection |
@extends('Layout.Master')
@section('content')
<div class="row">
<div class="col">
<div class="card shadow">
<div class="card-header border-0">
<div class="row">
<div class="col-md-6">
<h3 class="mb-0">Absensi Guru</h3>
</div>
... |
<!--=== Footer Version 1 ===-->
<div class="footer-v1">
<div class="footer">
<div class="container">
<div class="row">
<!-- About -->
<div class="col-md-4 md-margin-bottom-40 footer-about">
<p>Подарочные сертификаты – это универсальный и удобны... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<?php
namespace Spatie\ScheduleMonitor\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
use OhDear\PhpSdk\OhDear;
use OhDear\PhpSdk\Resources\CronCheck;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTask;
use Spatie\ScheduleMonitor\Support\ScheduledTasks\ScheduledTasks;
use Spatie\ScheduleM... |
<?php
include('../../config.php');
function upload(){
$namaFile = $_FILES['photo']['name'];
$ukuranFile = $_FILES['photo']['size'];
$error = $_FILES['photo']['error'];
$tmpName = $_FILES['photo']['tmp_name'];
//Cek Apakah tidak ada gambar yang di upload
if (... |
<?php
class C_datatraning extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('M_datatraning');
$this->load->model('M_inputdatatraning');
$this->load->model('M_probabilitas');
$this->load->model('M_nilaiatribut');
$this->load->library('session');
... |
<?php
namespace App;
class Mes
{
static string $taophong="Tạo phòng thành công";
static string $suaphong="Sửa phòng thành công";
static string $suaphong_fail="Sửa phòng thất bại";
static string $dongphong="Đóng phòng thành công";
static string $dongphong_fail="Đóng phòng thất bại do phòng đang đ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
</head>
<div class="col-sm-4" style="pad... |
<?php
use App\Models\Bookable;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for yo... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Inertia\Inertia;
use Illuminate\Http\Request;
use Laravel\Jetstream\Jetstream;
use Illuminate\Support\Facades\Gate;
use Illuminate\Auth\Events\Registered;
use Illuminate\Support\Facades\Validator;
use App\Http\Resources\User as ResourcesUser;
use Laravel\... |
<?php
declare(strict_types=1);
use Blumilk\Codestyle\Config;
use Blumilk\Codestyle\Configuration\Defaults\CommonSkippedRules;
use Blumilk\Codestyle\Configuration\Utils\Rule;
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
use PhpCsFixer\Fixer\Ope... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGenreTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('genre', function ... |
@extends('admin/layout')
@section('manage_content')
active
@endsection
@section('contents')
active
@endsection
@section('content')
<div class="container-fluid">
<!-- Breadcrumb-->
<div class="row pt-2 pb-2">
<div class="col-sm-9">
<h4 class="page-title">Manage Content</h4>
... |
<?php
/**
* @param $custom_types
* @return array
*/
function pmxi_pmxi_custom_types($custom_types) {
if ( class_exists('WooCommerce') ) {
$custom_types['woo_reviews'] = new stdClass();
$custom_types['woo_reviews']->labels = new stdClass();
$custom_types['woo_reviews']->labels->name = __('... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class PrimaryAddressSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
} |
<option value="---" data-provinces="[]">---</option>
<option value="Afghanistan" data-provinces="[]">Afghanistan</option>
<option value="Aland Islands" data-provinces="[]">Åland Islands</option>
<option value="Albania" data-provinces="[]">Albania</option>
<option value="Algeria" data-provinces="[]">Algeria</option>
<op... |
<?php
include('../include/webzone.php');
$login = $_POST['login'];
$password = $_POST['password'];
if($login=='' || $password=='') {
$display .= '<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>';
$display .= 'Missing login and/or passwor... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\User\Profile;
use App\Http\Controllers\Admin\UserController;
use App\Http\Controllers\User\ProfileController;
use Illuminate\Foundation\Auth\EmailVerificationRequest;
/*
|--------------------------------------------------------------------------
| W... |
<?php
/**
* Copyright 2014 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that in... |
<?php
namespace AppBundle\Repository;
/**
* InstitutionRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class InstitutionRepository extends \Doctrine\ORM\EntityRepository
{
} |
<?php
namespace Flemzord\AutoTranslate\Exceptions;
use Exception;
class LanguageCodeNotExist extends Exception
{
public static function throw(string $source, string $target): self
{
return new static('The language code "'.$source.'" or "'.$target.'" does not exist.');
}
} |
@section('title')
<title>Error 404</title>
<meta name="description" content="We could not find the page you are looking for. You can get back with these links" />
<meta name="keywords" content="tagmp3, mp3tag, tag mp3, mp3 tag" />
<meta name="apple-mobile-web-app-title" content="Mp3Tager" />
<meta property="fb:app_id" ... |
<?php
require 'conexao_db.php';
include 'src/artigos.php';
$artigo = new Artigo($mysqli);
$artigos = $artigo->exibirTodos();
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Meu Blog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="container">
... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class SituacaoEscolar_model extends MY_Model
{
public function __construct()
{
parent::__construct();
$this->table = "situacoes_escolares se";
$this->pk_name ='se.id_situacao_escolar';
$this->column_order = array('se.id_situacao_escolar... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send any email
| messages sent by your appl... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
protected $fillable = [
'name', 'email', 'password',
];
protected $hidden... |
<?php
$image = new PHPImage('php.gif');
$mask = new PHPImage('mask.png');
$image->mask($mask);
$mask->destroy();
$image->format = 'png';
$image->display(); |
<h2>Catégories</h2>
<ul>
<?php
// Chemin vers le fichier movies.json
$path = dirname(__DIR__) . '/movies.json';
// On récupère le contenu du fichier
$movies = file_get_contents($path);
// On convertit le JSON en tableau PHP
$movies = json_decode($movies, true);
foreach ($movies as $on... |
<?php
include 'config.php';
$id = $_GET['id'];
$del = "DELETE FROM `books` WHERE `id` = '$id'";
$query= mysqli_query($con,$del);
?> |
<?php
defined('InShopNC') or exit('Access Invalid!');
/**
* 團購狀態
*/
$lang['groupbuy_state_all'] = '全部團購';
$lang['groupbuy_state_verify'] = '未審核';
$lang['groupbuy_state_cancel'] = '已取消';
$lang['groupbuy_state_progress'] = '已通過';
$lang['groupbuy_state_fail'] = '審核失敗';
$lang['groupbuy_state_close'] = '已結束';
/**
* 團購欄... |
<html>
<body>
<script src="//localhost:5001/bundle.js"></script>
</body>
</html> |
<?php
/* @var codemix\yii2confload\Config $this */
return [
'class' => 'yii\db\Connection',
'dsn' => self::env('DB_DSN', 'mysql:host=db;dbname=web'),
'username' => self::env('DB_USER', 'web'),
'password' => self::env('DB_PASSWORD', 'web'),
'charset' => 'utf8',
// Schema cache options (for prod... |
<?php
namespace App\Form;
use App\Form\ApplicationType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
class PasswordForgotType extends ApplicationType
{
public function buildForm(FormBuilderInterf... |
@extends('layouts.app')
@section('title')
<div class="row">
<h1 class="m-0">Departamentos</h1>
@can('cities.store')
<ol class="breadcrumb float-sm-right pl-1">
<button type="button" class="btn btn-success btn-xs" data-toggle="modal" data-target="#cityCreate"><i class="fas... |
<?php
namespace Database\Seeders\Classes;
use Illuminate\Database\Seeder;
use App\Models\DndClass;
use App\Models\Description;
use App\Models\DataHandler;
use App\Models\EvolvingNumber;
use App\Models\Feature;
use App\Models\FeatureChoice;
use App\Models\FeatureList;
use App\Models\HitDice;
use App\Models\Proficienc... |
<?php
$mvName = $_GET['mv'];
if(!$mvName){
echo "no movie name passed";exit;
}
?>
<center>
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="100%" HEIGHT="100%" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="<?php echo $mvName;?>">
<PARAM name="AUTOPLAY" VALUE="true... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1, maximum-scale=1.0" name="viewport">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>LandLagos - Data</title>
<link rel="shortc... |
<div class="card">
<div class="card-header">
<h3 class="card-title">Bird Test | <small>Personality Test</small></h3>
</div>
<div class="card-body">
<div class="row-fluid">
<p style="font-size:16px;">Tes ini merupakan salah satu alat penilaian diri yang dirancang untuk meningkatkan kesadaran... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
protected $table = 'comments';
protected $fillable = ['id', 'comment'];
public function user () {
return $this->belongsTo('App\User', 'user_id');
}
public function replies() {
return $th... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{ucfirst($user->settings->site_name)}} - Recovery Link</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
/**
* Googl... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* di... |
<?php
namespace App;
use Grimzy\LaravelMysqlSpatial\Eloquent\SpatialTrait;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
use SpatialTrait;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'city', 'zip_code', 'stre... |
<?php
$lang['upload_userfile_not_set'] = "ポスト用変数のuserfileを見つけることが出来ません。";
$lang['upload_file_exceeds_limit'] = "アップロードされたファイルは、サーバーで許可された最大サイズを超えています。";
$lang['upload_file_exceeds_form_limit'] = "アップロードされたファイルは送信フォームで許可された最大サイズを超えています。";
$lang['upload_file_partial'] = "ファイルは部分的にアップロードされました。";
$lang['upload_no_temp_dir... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('services', fun... |
@extends('layouts.Backend.master')
@section('content')
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h3><strong>Edit Password</strong></h3>
<!---- From start ---->
<form class="form" action="{{ route('us... |
<?php
namespace EasySwoole\Utility;
/**
* 随机生成器
* Class Random
* @author : evalor <master@evalor.cn>
* @package EasySwoole\Utility
*/
class Random
{
/**
* 生成随机字符串 可用于生成随机密码等
* @param int $length 生成长度
* @param string $alphabet 自定义生成字符集
* @return bool|string
* @author : evalor <master... |
<?php
namespace App\Models\Log;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Scopes\CarrierScope;
/**
* Class CarrierCommissionSettlePeriodsLog
* @package App\Models\Carrier
* @version April 19, 2017, 8:45 pm CST
*/
class CarrierAgentSettlePeriodsLog extends Model
{
protected s... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ExistenciaController extends Controller
{
public function index()
{
$detalle_p = DetalleProduct::all();
$producto =Producto::all();
return view('detalleProducto.index',compact('detalle_p','producto'));
... |
<?php
namespace Soyuka\SeedBundle\Tests\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Tester\CommandTester;
use Soyuka\SeedBundle\Tests\fixtures\BadSeed;
use Soyuka\SeedBundle\Tests\fixtures\FailSeed;
class Seeds... |
<?php
namespace App\Http\Controllers;
use App\Models\Contact;
use Illuminate\Http\Request;
class ContactController extends Controller
{
public function index() {
// dd('Index method');
return Contact::all();
}
} |
<?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',... |
<?php
namespace App\Http\Controllers;
use App\Category;
use Illuminate\Http\Request;
class CategoryController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('admin.categories.index')... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Custom404 extends Admin_Controller
{
public function __construct()
{
parent::__construct();
$this->data['page_title'] = '404 Error';
$this->load->helper('url');
}
public function index(){
$this->output->set_stat... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Plant extends Model
{
protected $fillable = [
'name', 'comments', 'systemID', 'planttypeID', 'roomID', 'imageFileName', 'planterID'
];
} |
{{ Form::model($player, ['route' => ['players.update', $player->id], 'class' => 'form-horizontal','files' => true]) }}
<div class="row">
@include('layouts.partials._error')
<div class="col-md-6">
<div class="box border green">
<div class="box-title">
<h4><i class="fa fa-bars"></i>Información General</h... |
<?php
namespace SONAcl\Form;
use Zend\Form\Form;
class Dropdown extends Form
{
public function __construct($name = null)
{
parent::__construct('dropdown');
$this->setAttribute('method', 'post');
$id = new \Zend\Form\Element\Hidden('id');
$this->add($id);
$this->add(... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class FormRequest_Author extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Ge... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_Add_Shopping_cart extends CI_Migration {
public function up()
{
// 建立資料庫
$this->dbforge->add_field(array(
'id' => array(
'type' => 'INT',
'auto_increment' => TRUE
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class waterdetail extends Model
{
//
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title><?= $title_page ?></title>
<?php $this->load->view('f... |
<?php
/**
*
* @copyright 2017 www.guangdawangluo.com - All Rights Reserved
* @author opencart.cn <support@opencart.cn>
* @created 2016-10-22 09:12:56
* @modified 2016-11-05 17:35:22
*/
// Heading
$_['heading_title'] = 'Amazon 支付';
// Text
$_['text_module'] = '... |
<?php
use Anteris\Autotask\API\Opportunities\OpportunityCollection;
use Anteris\Autotask\API\Opportunities\OpportunityEntity;
use Anteris\Autotask\API\Opportunities\OpportunityService;
use Anteris\Autotask\API\Opportunities\OpportunityQueryBuilder;
use Tests\AbstractTest;
/**
* Runs tests for OpportunityService.
*/... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace App\Http\Routes;
/**
* Class BaseRoute
* @package App\Http\Routes
*/
class BaseRoute
{
public function map(){}
} |
<?php
/*
* This file is part of the phlexible package.
*
* (c) Stephan Wentz <sw@brainbits.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phlexible\Component\AccessControl\Exception;
/**
* Exception interface fo... |
<?php namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddThrottlingColumnsAccountsTable extends Migration
{
public function up()
{
$this->forge->addColumn('accounts', [
'username_followers' => [
'type' => 'DATETIME',
'null' ... |
<?php
require_once('../Models/VentasModel.php');
// en caso de una venta
if(isset($_GET['codigoProducto']))
{
$codigoProducto = $_GET['codigoProducto'];
$inst = new Ventas();
$Producto = $inst->getProductoAjax($codigoProducto);
if($Producto){
echo "<select id='idProducto' name='idProducto' class='for... |
<?php
namespace AlipaySDK\aop\request;
/**
* ALIPAY API: alipay.eco.mycar.data.external.query request
*
* @author auto create
* @since 1.0, 2019-07-24 10:19:24
*/
class AlipayEcoMycarDataExternalQueryRequest
{
/**
* 行业平台外部查询请求
**/
private $bizContent;
private $apiParas = array();
private $terminalType;... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class Product extends JsonResource
{
public function toArray($request)
{
return [
'id' => $this->product_id,
'product_name' => $this->product_name,
'product_image' => 'http://loca... |
<!DOCTYPE html>
<html>
<head>
<style>
table, th{
border: 1px solid black;
}
</style>
<title>Clientes de la muebleria</title>
</head>
<body>
<h1 align="center">Clientes de la muebleriaRS</h1>
<div class="panel-body">
<table>
<thead>
<th align="center" style="p... |
<?php
namespace Icicle\Tests\Concurrent\Worker;
use Icicle\Concurrent\Worker\WorkerProcess;
class WorkerProcessTest extends AbstractWorkerTest
{
protected function createWorker()
{
return new WorkerProcess();
}
} |
<?php
include '../../sql.php';
$view = $_POST['id'];
if($view === '1'){
$result = mysqli_query($con,"SELECT * FROM brytweb_wms_analytics WHERE page = 'homeland'");
$count = 0;
$android = 0;
$windows = 0;
$linux = 0;
$ios = 0;
$stnv = 0;
$fstv = 0;
$jan = 0;
$feb = 0;
$mar = 0;
$apr = 0;
$may = 0;
$jun = 0;
... |
<?php
/**
* $_REQUEST
*
* objectobject_id
* type
*
*/
$multiEdit = MultiEdit::factory( $_REQUEST[ 'type' ] );
$objId = (int)$_REQUEST[ 'contentobject_id' ];
if( $objId )
{
$objects = $multiEdit->getRelatedObjects( $objId );
$tpl = eZTemplate::factory();
$tpl->setVariable( 'construct_id', $objId )... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-ho... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\CourseSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="course-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
'options' => ... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AntChain\NFTX\Models;
use AlibabaCloud\Tea\Model;
class QueryNftOrderResponse extends Model
{
// 请求唯一ID,用于链路跟踪和问题排查
/**
* @var string
*/
public $reqMsgId;
// 结果码,一般OK表示调用成功
/**
* @var string
*/
public... |
<?php
namespace common\models\queries;
use yii\helpers\ArrayHelper;
/**
* This is the ActiveQuery class for [[\common\models\NewsCategory]].
*
* @see \common\models\NewsCategory
*/
class NewsCategoryQuery extends \yii\db\ActiveQuery
{
/**
* @param null $db
* @return array|\yii\db\ActiveRecord[]
... |
@extends('layouts.app')
@section('content')
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-left">
<h2>Student Reporting/Snitching System</h2>
</div>
<div class="pull-right">
<a class="btn btn-success" href="{{ route('projects.create') }}" title="Create a project"> <i class="fas fa-plus-circle"></i... |
<?php
namespace Google\AdsApi\AdManager\v201808;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class InventoryUnitRefreshRateError extends \Google\AdsApi\AdManager\v201808\ApiError
{
/**
* @var string $reason
*/
protected $reason = null;
/**
* @param string $fieldPath
*... |
<?php
namespace SilverStripe\Security\Test\InheritedPermissionsTest;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Security\InheritedPermissions;
use SilverStripe\Security\InheritedPermissionsExtension;
use SilverStripe\Security\PermissionChe... |
<?php
/**
* @package WPSEO\Main
*/
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
/**
* @internal Nobody should be able to overrule the real version number as this can cause serious issues
* with the options, so no if ( ! defined() )
... |
<?php
namespace App\Repositories\User;
use App\Models\Permission;
use Illuminate\Support\Facades\DB;
class PermissionEloquent implements PermissionInterface
{
private $model;
/**
* PermissionEloquent constructor.
* @param PermissionInterface $model
*/
public function __construct(Permissio... |
namespace Album\Controller
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class AlbumController extends AbstractActionController
{
private $table;
public function __construct(AlbumTable $table)
{
$this->table = $table;
}
public function indexAction()
... |
<?php
declare(strict_types=1);
namespace phpDocumentor\Guides\RestructuredText;
use League\Flysystem\FilesystemInterface;
use phpDocumentor\Descriptor\GuideSetDescriptor;
use phpDocumentor\Guides\Configuration;
final class ParseDirectoryCommand
{
/** @var Configuration */
private $configuration;
/** @v... |
<?php
/**
* Created by PhpStorm.
* User: ssp
* Date: 2016/8/18
* Time: 9:19
*/
namespace Common\Model;
use Think\Model\ViewModel;
class ActivityViewModel extends ViewModel{
public $viewFields = array(
'Student_class' => array('student_id','class_id'),
'Class_activity'=>array('class_id','acti... |
<?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
*/
/*
MEDIDAS HERE
*/
public function up()
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProductProperty extends Model
{
use HasFactory;
protected $table = "product_property";
protected $fillable = [];
} |
<?php
namespace RectorPrefix20210701;
if (\class_exists('t3lib_search_liveSearch_queryParser')) {
return;
}
class t3lib_search_liveSearch_queryParser
{
}
\class_alias('t3lib_search_liveSearch_queryParser', 't3lib_search_liveSearch_queryParser', \false); |
<?php
/** Zend_Controller_Action */
require_once 'Zend/Controller/Action.php';
class personsController extends Zend_Controller_Action
{
public function indexAction(){
OpenContext_SocialTracking::update_referring_link('person_index', $this->_request->getRequestUri(), @$_SERVER['HTTP_USER_AGENT'], @$_... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use common\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\VeltrixAsset;
use cinghie\cookieconsent\widgets\CookieWidget;
use yii\bootstrap\Modal;
CookieWidget::widget([
... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Requisition;
use DB;
use Auth;
use PDF;
use Session;
class RequisitionController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function re... |
<?php
Route::get('/', function (\Illuminate\Http\Request $request) {
$ARRAY = ['Ok', 'Noted', 'Sounds good'];
$size = count($ARRAY);
$rand = rand(0, $size);
$randomElem = $ARRAY[$rand];
return $randomElem;
}); |
<?php
namespace App\Controller;
use App\Entity\Competence;
use App\Entity\GroupeCompetence;
use App\Repository\CompetenceRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.