text stringlengths 2 1.03M |
|---|
<?php
class User extends AppModel {
public function checkHp($user, $stages) {
$save = array();
$maxHp = $this->getMaxHp($user, $stages);
$user['User']['maxHp'] = $maxHp;
$sec = 60 * 5;
if ($user['User']['hp'] < $user['User']['maxHp']) {
$now = time();
$old = strtotime($user['User']['hpChecked']);
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function ... |
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class updated extends Component
{
public $date;
public $name;
public $userId;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($date,$name=null,$userId=null)
{
... |
<?php
namespace Spatie\Async;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Spatie\Async\Process\SynchronousProcess;
use Spatie\Async\Tests\InvokableClass;
use Spatie\Async\Tests\MyClass;
use Spatie\Async\Tests\MyTask;
use Spatie\Async\Tests\NonInvokableClass;
use Symfony\Component\Stopwatch\Stopw... |
--TEST--
mysqli_stmt_fetch - geometry / spatial types
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
if (!defined("MYSQLI_TYPE_GEOMETRY"))
die("skip MYSQLI_TYPE_GEOMETRY not defined");
?>
--FILE--
<?php
require('connect.inc');
if (!$link = ... |
<fieldset>
<h2>Klant Intake</h2>
<?php
$url = $this->Html->url(array('controller' => 'iz_deelnemers', 'action' => 'intakes', $id), true);
echo $this->Form->create(
'IzIntake',
array(
'url' => $url,
)
);
$id = !empty($persoon['IzIntake']['id']) ? $persoon['IzIntake']['id'] : '';
echo $this->Form->hi... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Session;
class administrador extends Controller
{
public function index(){
return view ('sistema.index');
}
} |
<?php
declare(strict_types=1);
namespace App\Controller;
use App\Entity\User;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use ... |
<?php
namespace A1comms\GaeSupportLaravel\Foundation;
use Laravel\Lumen\Application as BaseLumenApplication;
use A1comms\GaeSupportLaravel\Log\Logger;
use Illuminate\Support\Facades\Storage;
use League\Flysystem\Filesystem as Flysystem;
use Google\Cloud\Storage\StorageClient as GCSStorageClient;
use Google\Cloud\Stor... |
@extends('layouts.app')
@section('title','分类 文章')
@section('content')
<div class="container">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('post.index') }}">博客</a></li>
<li class="breadcrumb-item"><a href="{{ route('category.index') }}">分类</a></li>
... |
<?php
/**
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
... |
<?php
declare(strict_types=1);
namespace CasualMan\Common\Process;
use Utils\Context;
use Protocols\JsonRpc2;
use Psr\Log\LoggerInterface;
use Utils\JsonRpc2\Exception\MethodNotFoundException;
use Utils\JsonRpc2\Exception\RpcException;
use Utils\JsonRpc2\Exception\ServerErrorException;
use Utils\JsonRpc2\Exception\Se... |
<?php
namespace PhpProbe\Check;
use \PhpProbe\Adapter\Response\AbstractAdapterResponse;
/**
* Interface CheckInterface
*
* @author Julien CHICHIGNOUD <julien.chichignoud@gmail.com>
* @package PhpProbe\Check
*/
interface CheckInterface
{
/**
* Check a response against the defined criteria
*
*... |
<?php
/*
This file is auto-generated, do not edit
*/
/**
* SetViewPortion request
*/
namespace Recombee\RecommApi\Requests;
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException;
/**
* Sets viewed portion of an item (for example a video or article) by a user (at a session).
* If you send new reques... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\LinkTerkait */
$this->title = 'Tambah Link Terkait';
?>
<section class="content-header">
<h1>
<?= $this->title ?>
<small></small>
</h1>
<ol class="breadcrumb">
<li><a href="index"><i class="fa fa-link"><... |
<div class="col-md-{{$size ?? '12'}}">
<label for="{{$id ?? $name}}" class="field prepend-icon">
<textarea class="gui-textarea"
id="{{$id ?? $name}}"
name="{{$name ?? $id}}"
placeholder="{{$placeholder ?? ''}}"
cols="{{$cols ?? 7}}"
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddFanspeedTraitType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::table('trait_type')->inse... |
<?php
namespace Immortal\Database;
use Immortal\Database\Query\Expression;
abstract class Grammar
{
/**
* The grammar table prefix.
*
* @var string
*/
protected $tablePrefix = '';
/**
* Wrap an array of values.
*
* @param array $values
* @return array
*/
... |
<?php
namespace app\commands;
use Yii;
use yii\console\Controller;
use app\models\Assortiment;
use app\models\Factuur;
use app\models\Turven;
use app\models\Transacties;
use app\models\Mollie;
use app\models\User;
/**
* Test controller
*/
class CronController extends Controller
{
public function actionIndex()
... |
<?php
function testIssetExpressionHasExpectedStartLine()
{
if (isset($GLOBALS['foo'])) {
return 'T_FOO';
}
return 'T_NIL';
} |
<?php
use Illuminate\Support\Facades\App;
if (App::environment('production')) {
URL::forceScheme('https');
}
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
... |
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 mb-4 mt-4">
<h1 class="mb-4">Edit Carousel</h1>
<?= form_open_multipart(base_url('admin/carousel_insert')); ?>
<label for="judul">Judul : </label><br>
<input class="form-control" type="text" name="judul" id="judul" placeholder="Nama Produk" required="">... |
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<div>
<?php while (have_posts()) : the_post(); ?>
<div>
<h1><?php the_title(); ?></h1>
<?php if (has_post_thumbnail()) : ?>
<div>
<a href="<?php the_permalink(); ?>"... |
<?php
/**
* ApiModule.php
* Date: 2020-12-11 11:08:43
* User: chenlong <vip_chenlong@163.com>
*/
namespace app\admin\page\system;
use app\common\BasePage;
use sdModule\layui\form\Form as DefaultForm;
use sdModule\layui\lists\module\Column;
use sdModule\layui\lists\module\EventHandle;
use sdModule\layui\lists\Page... |
<?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\DomCrawler;
/**
* Link represents an HTML link (an H... |
<?php declare(strict_types=1);
namespace Safebeat\Service\Serializer;
interface SerializeInterface
{
public static function supports($object): bool;
public static function processValue($object);
} |
<?php
/**
* Plugin Name: Really Simple SSL
* Plugin URI: https://www.really-simple-ssl.com
* Description: Lightweight plugin without any setup to make your site ssl proof
* Version: 2.5.20
* Text Domain: really-simple-ssl
* Domain Path: /languages
* Author: Rogier Lankhorst
* Author URI: https://www.rogierlankh... |
<?php
/**
* Phinx
*
* (The MIT license)
* Copyright (c) 2015 Rob Morgan
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated * documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* ri... |
@include('User.header')
<br><br>
<style type="text/css">
img.tengah{
display: inline-block;
border: 1px solid darkcyan;
margin: 10px;
width: 280px;
height: 250px;
}
.x{
display: inline-block;
}
</style>
<div style="text-align: center;">
<h3 style="color: darkcyan;" align="center"><b>KEGIATAN IKATAN... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAtorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ators', function ... |
<?php
/**
* 抢购状态
*/
$lang['groupbuy_state_all'] = '全部抢购';
$lang['groupbuy_state_verify'] = '未审核';
$lang['groupbuy_state_cancel'] = '已取消';
$lang['groupbuy_state_progress'] = '已通过';
$lang['groupbuy_state_fail'] = '审核失败';
$lang['groupbuy_state_close'] = '已结束';
/**
* 抢购字段
**/
$lang['group_template'] = '抢购活动';
$lang['g... |
<?php
// (A) HTML HEADER & STYLES
$this->data = "<!DOCTYPE html><html><head><style>".
"html,body{font-family:sans-serif}#quotation{max-width:800px;margin:0 auto}#bigi{margin-bottom:20px;font-size:28px;font-weight:bold;color:#ad132f;padding:10px}#company,#quoinfo{margin-bottom:30px}#company img{max-width:180px;height:au... |
<?php
namespace Bootphp\Auth\Driver;
use Bootphp\ORM\ORM;
use Bootphp\Cookie;
/**
* ORM Auth driver.
*
* @package Bootphp/Auth
* @author Tinsh <kilofox2000@gmail.com>
* @copyright (C) 2005-2017 Kilofox Studio
* @license http://kilofox.net/license
*/
class ORMDriver extends \Bootphp\Auth\Auth
{
... |
<?php
function validateDate($date)
{
$d = DateTime::createFromFormat('Y-m-d', $date);
return $d && $d->format('Y-m-d') === $date;
} |
<?php
class VP_Util_Text
{
public static function parse_md($text)
{
if(!class_exists('Parsedown'))
{
$path = VP_FileSystem::instance()->resolve_path('includes', 'parsedown');
require $path;
}
return Parsedown::instance()->parse($text);
}
public static function make_opt($optArray)
{
$optString = ... |
<?php
/**
* DataObject used to keep track of previously run migrations.
*
* @author Patrick Nelson, pat@catchyour.com
* @since 2015-02-17
*/
class DatabaseMigrations extends DataObject {
private static $db = array(
"BaseName" => "Varchar(255)",
"MigrationClass" => "Varchar(... |
<?hh // strict
/*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\DiffLib;
use namespace HH\Lib\{C, Str, Vec};
// @oss-disable: use funct... |
@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">{{ __('Edit News') }}</div>
<div class="d-flex p-2 bd-highlight mb-3">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSubscribersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('subscribers... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Menus Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used in menu items throughout the system.
| Regardless where... |
<?php
declare(strict_types=1);
namespace ricwein\FileSystem\Tests\Storage;
use PHPUnit\Framework\TestCase;
use ricwein\FileSystem\Directory;
use ricwein\FileSystem\Exceptions\AccessDeniedException;
use ricwein\FileSystem\Exceptions\ConstraintsException;
use ricwein\FileSystem\Exceptions\Exception;
use ricwein\FileSys... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Slide extends Model
{
protected $table = "slides";
} |
<?php
/**
* @link https://github.com/zetta-code/zend-authentication for the canonical source repository
* @copyright Copyright (c) 2018 Zetta Code
*/
declare(strict_types=1);
namespace Zetta\ZendAuthentication\Controller\Service;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRegionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('regions', funct... |
<?php
/* sale/order_list.twig */
class __TwigTemplate_ae2d36c65030c393c4df43c8449e78c208ff694e0e4a8806170613a6d8b7a085 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}... |
<?php $pdo = null; ?> |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Like;
class Post extends Model
{
use HasFactory;
protected $fillable = [
'body'
];
public function likedBy(User $user)
{
return $this->likes-... |
<?php
/**
* Created by PhpStorm.
* User: dennys
* Date: 25/07/15
* Time: 14:09
*/
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use App\Model\GrupoUsuario;
class GrupoUsuarioTableSeeder extends Seeder {
public function run()
{
DB::table('grupo_usuarios')->delete();
... |
<?php
/**
* This file is part of the brandon14/ebay-sdk-php package.
*
* MIT License
*
* Copyright (c) 2021 Brandon Clothier
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software withou... |
<?php /*
* Kimkëlen - School Management Software
* Copyright (C) 2013 CeSPI - UNLP <desarrollo@cespi.unlp.edu.ar>
*
* This file is part of Kimkëlen.
*
* Kimkëlen is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License v2.0 as published by
* the Free Softwar... |
<link rel="icon" href="{{asset('storage/icons/32x32.png')}}">
<script src="{{ asset('storage/jquery/jquery.js')}}"></script>
<script src="{{ asset('storage/angular/angular.js')}}"></script>
<script src="{{ asset('storage/bootstrap/bootstrap.js')}}"></script>
<script src="{{ asset('storage/bootstrap/popper.js')}}"></sc... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... |
@extends('adminlte::page')
@section('title', 'Mesas')
<link rel="stylesheet" href="css/comum.css">
@section('content_header')
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{route('admin.index')}}">Dashboard</a></li>
<li class="breadcrumb-item"><a href="{{route('tables.index')}}">M... |
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81Po... |
<?php
use Illuminate\Database\Seeder;
class PlayersTableSeeder_tigers extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('players')->insert([
'name' =>'近本光司',
'photo' =>'5.jpg',
'team_id' =>'3... |
<?php
namespace Github\Exception;
class PullsGetInternalServerErrorException extends InternalServerErrorException
{
/**
* @var \Github\Model\BasicError
*/
private $basicError;
public function __construct(\Github\Model\BasicError $basicError)
{
parent::__construct('Internal Error');
... |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of m_process_instance
*
* @author win7
*/
class m_process_instance extends CI_Model implements ObjInterfa... |
@extends('frontend.layouts.master')
@section('content')
<!-- Start Breadcrumb -->
<div id="breadcrumb-area">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="breadcrumbs">
<a href="{{url('/')}}">Home</a>... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a gr... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages t... |
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Payroll">
<title>Payroll</title>
<style>
@page {
margin:20px;
padding:20px;
}
body {
font-family: 'Helve... |
<div class="form-group">
{!!Form::label('Nombre:',null,['for'=>'inputname','class'=>'col-sm-2 control-label'])!!}
<div class="col-sm-12">
{!!Form::text('name',null,['class'=>'form-control','placeholder'=>'Ingresa su nombre'])!!}
</div>
</div>
<div... |
<?php
return [
'save' => 'Kaydet',
'create' => 'Oluştur',
'update' => 'Güncelle',
'delete' => 'Sil',
'failed' => 'Başarısız',
'store' => 'Mağaza',
'image' => 'Görsel',
'no result' => 'Sonuç Bulunamadı',
'product' => 'Ürü... |
<?php
Route::group(['middleware' => 'web', 'prefix' => 'cart', 'namespace' => 'Modules\Cart\Http\Controllers'], function()
{
Route::get('/', 'CartController@show');
Route::get('/widget', 'CartController@index');
Route::patch('/', 'CartController@store');
Route::get('/set-qty/{id}/{qty}', 'CartControlle... |
<?php
namespace Tests\Feature;
use App\CEO;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class CEOTest extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function testCEOCre... |
<?php
// Register store.
acf_register_store( 'field-groups' )->prop( 'multisite', true );
/**
* acf_get_field_group
*
* Retrieves a field group for the given identifier.
*
* @date 30/09/13
* @since 5.0.0
*
* @param (int|string) $id The field group ID, key or name.
* @return (array|false) The field group arr... |
<?php
namespace oecd\ties\stffatcatypes\v1;
/**
* @xmlNamespace urn:oecd:ties:stffatcatypes:v1
* @xmlType
* @xmlName AddressFix_Type
* @var oecd\ties\stffatcatypes\v1\AddressFix_Type
* @xmlDefinition
Structure of the address for a party broken down into its logical parts, recommended for easy matching. The '... |
<?php
namespace Kuusamo\Vle\Entity\Block;
use Kuusamo\Vle\Entity\Image;
use JsonSerializable;
/**
* @Entity
* @Table(name="blocks_images")
*/
class ImageBlock extends Block implements JsonSerializable
{
/**
* @ManyToOne(targetEntity="Kuusamo\Vle\Entity\Image")
*/
private $image;
public func... |
<?php
/**
* @package s9e\TextFormatter
* @copyright Copyright (c) 2010-2016 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\TextFormatter\Configurator\Items\AttributeFilters;
use s9e\TextFormatter\Configurator\Items\AttributeFilter;
class FalseFilter... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAi... |
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\JsonResponse;
class ItemController
{
/**
* @Route("/api/items", methods={"GET","HEAD"})
*/
public function listItems()
{
$i... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class ImportSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
} |
<?php
namespace BpmPlatform\Engine\Variable\Impl\Value;
use BpmPlatform\Engine\Variable\Type\{
ValueTypeInterface
};
use BpmPlatform\Engine\Variable\Value\TypedValueInterface;
use BpmPlatform\Engine\Variable\Type\ValueTypeTrait;
class NullValueImpl implements TypedValueInterface
{
private $isTransient;
p... |
@props(['submit'])
<div {{ $attributes->merge(['class' => '']) }}>
<div class="mt-5 md:mt-0 ">
<form wire:submit.prevent="{{ $submit }}">
<div class="px-4 py-5 bg-white sm:p-6 shadow {{ isset($actions) ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md' }}">
<x-jet-section-... |
<?php
namespace TreeHouse\BaseApiBundle\Exception;
/**
* Base exception for all Api exceptions
*/
class ApiException extends \Exception
{
} |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePlayersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('players', funct... |
<?php
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
$tables = [
'gamerscores... |
<?php
class ModelTask_A extends CActiveRecord{
public $callTrace=array();
public $src,$trg;
public function tableName(){
return 'item';
}
public function behaviors()
{
return array(
'swBehavior' => array(
'class' => 'application.extensions.simpleWorkflow.SWActiveRecordBehavior',
'auto... |
<?php
/**
* @package Wsdl2PhpGenerator
*/
/**
* Wrapper class for exception, only use is to collect functionality in one namespace
* This groups all validation exeptions to one class
*
* @package Wsdl2PhpGenerator
* @author Fredrik Wallgren <fredrik.wallgren@gmail.com>
* @license http://www.opensource.org/lice... |
<?php
namespace common\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\base\Post;
/**
* PostSearch represents the model behind the search form of `common\models\base\Post`.
*/
class PostSearch extends Post
{
/**
* {@inheritdoc}
*/
public function rul... |
<?php
namespace App\Http\Controllers;
use App\Entities\Post;
use App\Transformers\PostTransformer;
use Doctrine\ORM\EntityManagerInterface;
use Illuminate\Http\Request;
class PostController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __... |
<?php $__env->startSection('title', ''); ?>
<?php $__env->startSection('content'); ?>
@parent
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Proceso de Postulación <small>Mantenimiento</small></h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row"... |
@include('includes.head')
@include('includes.mov')
@include('includes.nav_movement')
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
@yield('content')
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row ... |
<?php
include_once ('../conf_tasas/index.php');
// Switch para indicar el estado de una consulta
$z = "n";
// Cambiar el Formato de las fechas para mysql
$CB = $_REQUEST ['cb'];
$sql = ("SELECT * FROM tatasas WHERE codbarras = '$CB' ORDER BY id DESC");
$result = mysql_query($sql, $conn);
$total = mysql_n... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ResourceBundle\DependencyInjection;
use Sylius\Bundle\ResourceBundle\Dependen... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
use HasFactory;
protected $fillable = ['name', 'guard_name'];
} |
<?php
/*
@version v5.21.0-dev ??-???-2016
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
... |
@extends('layout.mainlayout')
@section('content')
<div class="container">
<h1 class="mt-5 pt-5">Show Product [{{$product->product_tite}}]</h1>
<div class="jumbotron text-conter">
<p>{{$product->product_pic}}</p>
<p>
<img src="{{url('uploads/'.$product->produ... |
<div class="row">
<div class="col-lg-3 col-md-12"></div>
<div class="col-lg-6 col-md-12">
<div class="card ">
<div class="card-body">
<div class="text-center">
<div class="alert alert-warning form-control" id="warningdiv" style="max-width:300px;<?php if (!isset($message)){echo 'display:none;';... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Strings Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used in strings throughout the system.
| Regardless where ... |
<?php declare(strict_types = 1);
namespace PHPStan\Compiler\Console;
use PHPStan\Compiler\Filesystem\Filesystem;
use PHPStan\Compiler\Process\Process;
use PHPStan\Compiler\Process\ProcessFactory;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTes... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use App\Exceptions\NoActiveAccountException;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
class LoginController extends Controller
{
/*
|-------------------... |
<?php
declare(strict_types=1);
namespace Crawlzone\Extension;
use Crawlzone\Event\BeforeEngineStarted;
use Crawlzone\Service\StorageService;
class Storage extends Extension
{
/**
* @var StorageService
*/
private $storageService;
public function __construct(StorageService $storageService)
{... |
{{-- <div>
Very little is needed to make a happy life. - Marcus Antoninus
</div> --}}
<select>
<option selected="selected" value="0">All Category</option>
@foreach($categories as $category)
<option value="{{$category->id}}">{{$category->name}}</option>
@endforeach
</select> |
<?php
namespace Spatie\PersonalDataExport\Http\Controllers;
use Illuminate\Routing\Controller;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Spatie\PersonalDataExport\Http\Responses\ZipDownloadResponse;
use Spatie\PersonalDataExport\Http\Middleware\EnsureAuthorizedToDownload;
use Spatie\PersonalDataExpor... |
<?php
/** CrugeMailer
Provee la creacion de correos electronicos basados en esquema de vistas,
ayudando ademas a la centralizacion del despacho de los correos y ayudando
tambien a "componentizar".
instalacion: en config/main
'crugemailer'=>array(
'class' => 'application.modules.cruge.extensions.crugemailer.CrugeMail... |
<?php
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
<?php
declare(strict_types=1);
namespace Doctrine\StaticWebsiteGenerator\SourceFile;
class SourceFileRepository implements SourceFileReader
{
/** @var SourceFileReader[] */
private $sourceFileReaders = [];
/**
* @param SourceFileReader[] $sourceFileReaders
*/
public function __construct(ar... |
<?php
/**
* 配置账号信息
*/
class WxPayConf_pub
{
//=======【基本信息设置】=====================================
//微信公众号身份的唯一标识。审核通过后,在微信发送的邮件中查看
const APPID = 'wxe4046f21654aa5f3';
//受理商ID,身份标识
const MCHID = '10054470';
//商户支付密钥Key。审核通过后,在微信发送的邮件中查看
const KEY = '4801f00537f93bbb7ae80545cfb19ced';
//JSAPI接口中获取openid,审核后在公众... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProjectEquipmentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('proje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.