text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use App\Models\Menu;
use App\Models\Perfil;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assign... |
<?php
namespace Modules\Analytics\Http\Controllers;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Analytics\Entities\Analytic;
use Modules\Analytics\Entities\Rule as AnalyticRule;
use Illuminate\Validation\Rule;
class AnalyticsController exte... |
<?php
/**
* Created by PhpStorm.
* User: 小粽子
* Date: 2018/3/30
* Time: 11:50
*/
namespace App\Http\Controllers;
class HomeController extends Controller
{
// 首页
public function index()
{
return view('home.index');
}
// 登录页
public function login()
{
return view('home.log... |
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\PasswordResetRequestForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title=Yii::$app->sys->event_name.' Account Email Verification';
?>
<div class="site-verify-email">
<h2><?=Html::enco... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title><?php echo lang('Auth.deactivate_heading');?></title>
<!-- Bootstrap core CSS ... |
--TEST--
Teds\StrictTreeSet insert during iteration
--FILE--
<?php
function create_key(int $i) {
return "x$i";
}
$map = new Teds\StrictTreeSet([create_key(0), create_key(2), create_key(5)]);
foreach ($map as $key => $value) {
var_dump(
$map->add(create_key(1)),
$map->add(create_key(2)),
... |
<div class="form-group">
<a href="{{ url('backend/articles')}}" class="btn btn-primary">Back</a>
</div>
<div class="form-group">
{!! Form::label('Slug', 'Slug:') !!}
{!! Form::text('slug',null,['class'=>'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('Name', 'Name:') !!}
{!! For... |
<?php
/*
* (C) 2018, AII (Alexey Ilyin).
*/
/**
* @author AII (Alexey Ilyin)
*/
// TODO: check include path
//ini_set('include_path', ini_get('include_path'));
require '../vendor/autoload.php'; |
<?php
/* Cachekey: cache/stash_default/overrides.14a4666f207ea836a16c607613dad3c6/ */
/* Type: array */
/* Expiration: 2020-12-24T00:37:49+01:00 */
$loaded = true;
$expiration = 1608766669;
$data = array();
/* Child Type: object */
$data['return'] = unserialize(base64_decode('Tzo0MzoiQ29uY3JldGVcQ29yZVxGaWxlc3lzd... |
<?php
namespace App\Http\Controllers\Admin\Call;
use App\Http\Controllers\Controller;
use App\Models\AdditionEtcPrice;
use App\Models\AdditionEtcPriceRoom;
use App\Models\ClientTypeRoom;
use App\Models\Code;
use App\Models\OrderBasic;
use App\Models\OrderInfo;
use Illuminate\Http\Request;
use Jenssegers\Agent\Agent;
... |
<html>
<head>
<title>Kairos</title>
<?php
include "../include/include_css.php";
include "../header/header.php";
include "../../classes/model/validaOperario.php";
include "../../classes/model/validaLider.php";
?>
<meta charset="UTF-8">
<... |
<?php
define('DB_SERVER', '127.0.0.1');
define('DB_USER', 'root');
define('DB_PASS', 'root');
define('DB_NAME', 'btc3205');
class DBConnector
{
public $conn;
public function __construct()
{
/**
* mysql_connect function has been depricated and removed from PHP v7.0.0.
* https://ww... |
<?php
/**
* Created by PhpStorm.
* User: siim
* Date: 7.02.19
* Time: 7:21
*/
namespace Sf4\Api\Notification;
class BaseMessage extends AbstractMessage
{
} |
<?php $this->load->view('backend/top')?>
<?php $this->load->view('backend/menu')?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Daftar Testimoni Storage... |
<form class="text-center" action="{{ route(Request::route()->getName(),['type'=>Request::input('type')]) }}" method="GET" accept-charset="UTF-8">
{!! csrf_field() !!}
<input id="searchIndex" name="date" type="text" class="form-control" placeholder="{{ trans('sovpal.forms.Search') }}"
value="{{ $search... |
<?php
namespace App\Http\Controllers\API;
use App\Events\AppointmentStatusChangeEvent;
use App\Events\MessagePublished;
use App\Events\RealTimeMessage;
use App\Exports\AppointmentsExport;
use App\Http\Controllers\Controller;
use App\Http\Requests\CreateAppointmentRequest;
use App\Mail\AppointmentRegister;
use App\Mod... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Category;
class Activities extends Model
{
use HasFactory;
protected $table ='activities';
protected $fillable = [
'title',
'description',
'qua... |
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="<?php echo e(asset('conf-group')); ?>">部署設定</a>
</li>
<li class="nav-item">
<a class="... |
<?php
$title ="Technology";
include 'templates/header.php';
?>
<div class="banner-hero">
<div class="banner-hero-item" style="background-image:url('images/bg-tech.jpg')">
<div class="overlay-base"></div>
<div class="caption-hero">
<div class="container">
<h1>Reliability Technology</h1>... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateModelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('models', functio... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<!-- Scripts -->
<script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@... |
<?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
/**
* Created by PhpStorm.
* User: newage
* Date: 20.10.15
* Time: 22:28
*/
namespace AQAL\Stocks\Exceptions;
class StockException extends \Exception
{
} |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
@extends('layouts.app')
@section('subnav')
<nav class="navbar navbar-white bg-white shadow-sm">
<div class="container d-flex justify-content-between">
<div class="navbar-brand" >Create New Employee</div>
<a href="{{route('employees.index')}}" class="btn btn-primary">Employee Lists</a... |
<?php
declare(strict_types=1);
namespace Radarlog\Doop\Infrastructure\Sql;
use Doctrine\DBAL\Types\Types;
use Radarlog\Doop\Domain\Image;
use Radarlog\Doop\Domain\Repository;
use Ramsey\Uuid\Uuid;
final class PersistenceRepository implements Repository
{
private Connection $connection;
public function __co... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Register') }}</div>
<div class="card-body">
<form method="P... |
<!-- M:{{ $market->id ?? '0' }} T:{{ $themes->count() }} --> |
<?php
require_once './src/topo.php';
$colunas = array('id', 'nome', 'preco');
try {
echo '<table>';
echo '<tr><th></th>';
for ($i = 0; $i < count($colunas); $i++) {
echo '<th>' . $colunas[$i] . '</th>';
}
echo '</tr>';
$result = $produto->retrieve($colunas, "id <> 0"... |
@extends('../layouts.app')
@section('content')
<div class="container">
<h1 class="text-secondary text-center">Form Page</h1>
<form action="store" method="post" class="form-group col-md-6 offset-3" enctype="multipart/form-data">
@csrf
<input placeholder="title" name="title" type="t... |
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Import\Models\Producttypes;
use Commercetools\Exception\InvalidArgumentException;
use Commercetools\Import\Models\Producttypes\AttributeTypeCollection;
use stdClass;
/**
* @extends AttributeType... |
<?php
/**
* ZfcUser Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Zend\Db\Adapter\Adapter DI Alias
*
* Please specify the DI alias for the configured Zend\... |
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Answer 1</title>
<style>
body {
font-family: Arial;
max-width: 1000px;
margin: 0 auto;
}
.label {
font-... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Resources\Admin\UserParkingSpaceRespurce;
use App\Models\Users\UserParkingSpace;
use Illuminate\Http\Request;
class UserParkingSpaceController extends BaseController
{
public function index(Request $request)
{
... |
<?php
require 'header.php';
?>
<!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>Workflow System - Forgot Password</title>
</head>
<body>
<div class="login-form">
<form... |
<?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 Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
$this->call(AdministrationSeeder::class);
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
@if (session('msg'))
<p>{{session('msg')}}</p>
@endif
<a... |
<?php namespace Antoineaugusti\Tests\LaravelEasyrec;
class EasyrecTestRankings extends LaravelEasyrecTestCase {
//
// - mostViewedItems
//
public function testMostViewedItems()
{
$this->easyrec->mostViewedItems();
// Test values in the request
$queryParams = $this->easyrec->getQueryParams();
$this->asse... |
<?php
date_default_timezone_set('America/Los_Angeles');
require_once __DIR__."/../vendor/autoload.php";
require_once __DIR__."/../src/contacts.php";
session_start();
if (empty($_SESSION['list_of_contacts'])) {
$_SESSION['list_of_contacts'] = array();
}
$app = new Silex\Application... |
<?php
namespace Reliv\RcmApiLib\Api\Hydrator;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* @author James Jervis - https://github.com/jerv13
*/
class HydrateApiMessagesArrayFactory
{
/**
* @param $container ContainerInterface|ServiceLocatorInterface
... |
<?php
use yii\db\Migration;
/**
* Class m190903_081151_fias_link_apartment
*/
class m190903_081151_fias_link_apartment extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{profiles_x_fias_link}}', 'apartment', $this->string(255));
}
/**
... |
<?php
declare(strict_types=1);
namespace Tests\Core\Unit\Attribute\Application\Command\Attribute\String;
use PHPUnit\Framework\TestCase;
use Psr\EventDispatcher\EventDispatcherInterface;
use Zentlix\Core\Attribute\Application\Command\Attribute\String\CreateCommand;
use Zentlix\Core\Attribute\Application\Command\Attr... |
<?php
declare (strict_types=1);
namespace EasyCI202206\Symplify\SmartFileSystem\Finder;
use EasyCI202206\Nette\Utils\Finder as NetteFinder;
use SplFileInfo;
use EasyCI202206\Symfony\Component\Finder\Finder as SymfonyFinder;
use EasyCI202206\Symfony\Component\Finder\SplFileInfo as SymfonySplFileInfo;
use EasyCI202206\... |
<?php
/**
* This file is part of the prooph/arangodb-event-store.
* (c) 2017-2018 prooph software GmbH <contact@prooph.de>
* (c) 2017-2018 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source co... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Role extends Model
{
use SoftDeletes;
//
// protected $table = 'kalyan.shops';
protected $dates = ['deleted_at'];
public function users()
{
return $this->belongsToM... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SetupApplicationCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:setup';
/**
* The console command description.
*
* ... |
<?php
namespace Database\Seeders;
use App\Models\Recipe;
use Illuminate\Database\Seeder;
class RecipeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$recipes = config('constants.recipes');
Recipe::insert($recipes);
... |
<?php
use Illuminate\Database\Migrations\Migration;
class AddHeaderFooterOption extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function ($table) {
$table->boolean('all_pages_footer');
$t... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/7/7
* Time: 16:37
*/
namespace Wechat\Controller;
class ZushouController extends WechatController
{
public function zushou(){
$Property = M('Property');
$list = $Property->where('types=2')->select();
$this->assign('l... |
@extends('auth.layouts.app')
@section('content')
<div class="login-box">
<div class="login-logo">
<a href="#"><b>Attendance</b>Live</a>
</div>
<!-- /.login-logo -->
<div class="card">
@if (session('status'))
<div class="alert alert-success" role="... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12 ">
@if(Auth::user()->is_admin())
<div class="row">
<form class="form-horizontal" role="form" method="G... |
@extends('admin.admin_master')
@section('title','Student List')
@section('admin')
<!-- Page Wrapper -->
<div class="page-wrapper">
<!-- Page Content -->
<div class="content container-fluid">
<!-- Page Header -->
<div class="page-header">
<div class="row align-items-center">
<div class="col">
... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* B... |
<?php
/**
* File Upload List item
*
* @author Rob Caiger <rob@clocal.co.uk>
*/
namespace Common\Form\Elements\Types;
use Zend\Form\Fieldset;
/**
* File Upload List item
*
* @author Rob Caiger <rob@clocal.co.uk>
*/
class FileUploadListItem extends Fieldset
{
} |
<?php
/**
* Created by PhpStorm.
* User: mayn
* Date: 2018/6/29
* Time: 9:20
*/
namespace app\guessong\controller;
use common\controller\ApiLogin;
use think\Db;
use app\guessong\model\GsUsers;
use think\Controller;
class Member extends ApiLogin
{
public function index(){
/* $openId=input("openId");
... |
<?php
/**
* @file
* Contains \Drupal\shortcut\ShortcutAccessControlHandler.
*/
namespace Drupal\shortcut;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityHandlerInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityType... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
public function index()
{
$this->load->view('login');
}
public function proses_login()
{
$username=$this->input->post("username");
$password=$this->input->post("password");
$this->db->select();
... |
<?php
namespace App\Policies;
use App\Models\Computer;
use Illuminate\Auth\Access\HandlesAuthorization;
class ComputerPolicy
{
use HandlesAuthorization;
public function before(User $user)
{
if ($user->role == 2) {
return true;
}
}
/**
* Determine whether the user... |
<html>
<head>
<title>
Modelo de aplicações
</title>
</head>
<body>
<h2>Modelo de aplicações</h2>
<label><b>Permissões:</b></label><br>
<form action="<?= base_url('autoriza');?>" method="POST">
<input type="checkbox" name="permissions[]... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRealestateHeatingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('real... |
<?php
namespace ChromeDevtoolsProtocol\Model\Target;
/**
* Response to Target.getBrowserContexts command.
*
* @generated This file has been auto-generated, do not edit.
*
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
*/
final class GetBrowserContextsResponse implements \JsonSerializable
{
/**
* An array of... |
<?php
namespace OpenClassrooms\Bundle\ServiceProxyBundle\Services\Proxy;
use OpenClassrooms\DoctrineCacheExtension\CacheProviderDecorator;
use OpenClassrooms\ServiceProxy\ServiceProxyBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* @author Romain Kuzniak <romain.kuzniak@openclassrooms.co... |
<?php
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
return [
// en
... |
<!DOCTYPE html>
<html lang="en">
<head>
<?php include('common/header-css.php'); ?>
</head>
<body class="compact-menu">
<div class="overlay"></div>
<main class="page-content content-wrap">
<?php include('common/header.php'); ?>
... |
<?php
namespace Training\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Mail;
use Zend\Mail\Transport\Smtp as SmtpTransport;
use Zend\Mail\Transport\SmtpOptions;
class FileController extends AbstractActionController{
protected $authService;
protected $smtp;
p... |
<?php
namespace Tests\Unit\Models;
use App\Models\User;
use App\Models\Survey;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\BrowserKitTest as TestCase;
class SurveyTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function a_survey_has_title_link_attribute()
{
... |
<?php
namespace App\Console\Commands\ElasticSearch;
use App\Models\Product;
use Illuminate\Console\Command;
class SyncProducts extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
// 添加一个名为 index,默认值为 products 的参数
protected $signature = 'es:sync-pr... |
@extends('layouts.master')
@section('content')
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header"><br>
EDIT
</div>
<div class="card-body">
... |
<?php
namespace Spatie\Backup\Events;
use Spatie\Backup\Tasks\Backup\Zip;
class BackupZipWasCreated
{
/** @var \Spatie\Backup\Tasks\Backup\Zip */
public $zip;
/**
* @param \Spatie\Backup\Tasks\Backup\Zip $zip
*/
public function __construct(Zip $zip)
{
$this->zip = $zip;
}
} |
<?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\Cache\Traits;
use Symfony\Component\Cache\Exception\C... |
<?php
namespace App\Http\Requests;
class TopicRequest extends Request {
public function rules() {
switch ($this->method()) {
// CREATE
case 'POST':
// UPDATE
case 'PUT':
case 'PATCH': {
return [
'titl... |
<?php
/**
* Kuuzu Cart
*
* @copyright (c) 2007 - 2017 osCommerce; http://www.oscommerce.com
* @license BSD License; http://www.oscommerce.com/bsdlicense.txt
*
* @copyright Copyright c 2018 Kuuzu; https://kuuzu.org
* @license MIT License; https://kuuzu.org/mitlicense.txt
*/
namespace Kuuzu\KU\Core\Site\Shop\... |
<?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\Serializer\Normalizer;
use Symfony\Component\ErrorHan... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class AuthController extends Controller
{
public function login()
{
return view('pages.login');
}
public ... |
<?php
/* FOSUserBundle:Profile:show_content.html.twig */
class __TwigTemplate_ea6d525725810408a38275fad3dbf1e49324562f9df49d40f6e5c1ee1939a086 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks =... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/10/11
* Time: 0:52
*/
namespace app\admin\validate\blog;
use think\Validate;
/**
* 案例标签验证器
* Class Tag
* @package app\admin\validate\blog
*/
class Casetag extends Validate {
/**
* 验证规则
* @var array
*/
protected $rule... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBillsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bills', function ... |
<?php
use yii\console\ExitCode;
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel gaxz\crontab\models\CronTaskSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Cron Tasks';
$this->params['breadcrumbs'][] = $this->title;
?... |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+---------------------... |
<?php
class Excel_import_model extends CI_Model{
function importgrapariall() {
$this->db->select('*');
$this->db->from('import_excel');
$query = $this->db->get();
return $query->result();
}
function select(){
$this->db->order_by('id', 'DESC');
$query = $this... |
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\OrderEdit;
use Commercetools\Api\Models\Order\StagedOrderUpdateAction;
use Commercetools\Api\Models\Order\StagedOrderUpdateActionBuilder;
use Commercetools\Api\Models\Payment\PaymentRes... |
<?php
/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
*
* Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
* - (c) John MacFarlane
*
* For the full copyright and license information, please view the LICENSE
* file... |
<?php
namespace App\Shop\Products;
use App\Shop\Model;
/**
* Class Product
* @package App\Shop\Products
*/
class Product extends Model
{
/**
* @var array
*/
protected $acceptableAttributes = ['name', 'price', 'bundle_id', 'discount_id'];
/**
* @return array
*/
public function ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator cl... |
@extends('backend.app')
@section('content')
<div class="page-breadcrumb mb-2">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title">User</h4>
<div class="ms-auto text-end">
<nav aria-label="breadcrumb">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOptionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('options', funct... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\PortfolioCategory */
$this->title = 'Create Portfolio Category';
$this->params['breadcrumbs'][] = ['label' => 'Portfolio Categories', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
<... |
<?php
namespace CodePrimer\Model\Data;
use CodePrimer\Model\BusinessModel;
use CodePrimer\Model\Field;
use InvalidArgumentException;
class Data
{
// Constants used to specify the level of details associated with a given, non-native field
/** @var string Only include a reference to the BusinessModel or Datase... |
<?php
namespace app\models\api;
use Yii;
use yii\web\IdentityInterface;
/**
* This is the model class for table "in_users".
*
* @property integer $id
* @property string $username
* @property string $password
* @property string $authKey
* @property string $accessToken
*/
class User extends \yii\db\ActiveRecord... |
<?php
/**
* Copyright (c) 2020. Adrian Schubek
* https://adriansoftware.de
*/
namespace adrianschubek\Database\Migration;
class Schema
{
private array $data = [];
public function string(string $name, int $maxlength, string $default = null)
{
$this->data[] = "{$name} varchar({$maxlength}) {$th... |
<?php
namespace Shaarli\Security;
use Psr\Log\LoggerInterface;
use Shaarli\FakeConfigManager;
use Shaarli\TestCase;
/**
* Test coverage for LoginManager
*/
class LoginManagerTest extends TestCase
{
/** @var FakeConfigManager Configuration Manager instance */
protected $configManager = null;
/** @var L... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cities', functio... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?hh
class C {
public $p;
<<__Rx>>
public function bad() {
$io = new stdClass();
$this->p = array(2 => $io);
$this->p[2]->q++;
}
}
<<__EntryPoint>>
function test() {
$c = new C();
$c->bad();
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Programadores_model extends CI_Model {
public function getProgramadores() {
$query = $this->db->query('SELECT p.id, p.nome, p.cidade, p.idade, p.experiencia, p.email, c.cargo
FROM programadores AS p
JOIN cargos AS c ON c.id = p.cargo')... |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "goods_intro".
*
* @property string $goods_id
* @property string $content
*/
class GoodsIntro extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'goods_intr... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class CreateGoodsInfoRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validat... |
<?php namespace WebArticleExtractor;
/**
* PHP Web Article Extractor
* A PHP library to extract the primary article content of a web page.
*
* Parts of this class are based on 'Boilerpipe' By Christian Kohlschuetter
*
* @author Luke Hines
* @link https://github.com/zackslash/PHP-Web-Article-Extractor
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.