text stringlengths 2 1.03M |
|---|
<?php
namespace AlibabaCloud\SasApi;
/**
* @method string getSourceIp()
* @method $this withSourceIp($value)
* @method string getApiType()
* @method $this withApiType($value)
*/
class DescribePerDateData extends Rpc
{
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard_c extends CI_Controller {
function _construct(){
parent::_construct();
//Loading url helper
//$this->load->helper('url');
}
public function estadisticas(){
$this->load->... |
<?php
Route::group(['middleware' => ['web', 'auth'], 'prefix' => 'b/creation', 'namespace' => 'Modules\BECreation\Http\Controllers'], function()
{
Route::get('/all', 'BECreationController@index')->name('backend.creation.index');
Route::get('/form', 'BECreationController@form')->name('backend.creation.form');
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Articulo;
class Categoria extends Model
{
protected $fillable=["nombre", "descripcion"];
public function articulos(){
return $this->hasMany(Articulo::class);
}
public function scopeNombre($query, $v){
return $query->wh... |
@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">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('... |
<?php
declare(strict_types=1);
use Rector\PHPUnit\Rector\MethodCall\AssertComparisonToSpecificMethodRector;
use Rector\PHPUnit\Rector\MethodCall\AssertFalseStrposToContainsRector;
use Rector\PHPUnit\Rector\MethodCall\AssertSameBoolNullToSpecificMethodRector;
use Symfony\Component\DependencyInjection\Loader\Configurat... |
<?php
namespace AlexanderEmelyanov\yii\modules\articles\widgets;
use Yii;
use yii\data\ActiveDataProvider;
use AlexanderEmelyanov\yii\modules\articles\models\ArticleInstance;
/**
* Class ArticlesList
* @package AlexanderEmelyanov\yii\modules\articles\widgets
* @author Alexander Emelyanov
* @date 21dec2014
* @pl... |
@extends('layouts.default')
@section('content')
@if (Auth::check())
<div class="row">
<div class="col-md-8">
<section class="status_form">
@include('shared._status_form')
</section>
<h3>微博列表</h3>
@include('shared._feed')
</div>
<aside class="col-md-4">
... |
@extends("mainFrame")
@section("customJS")
<script type="text/javascript">
$( document ).ready(function() {
$("#botonAgregar").click(function(event){
event.preventDefault();
if($("#permiso").val() == ""){
$("#permiso").focus();
}
else if($("#nombre").val() == "")... |
<?php
namespace Github\Validator;
class RepositorySubscriptionValidator implements \Github\Validator\ValidatorInterface
{
public function validate($data) : void
{
$constraints = array(new \Symfony\Component\Validator\Constraints\Count(array('min' => 0, 'minMessage' => 'This array has not enough proper... |
<?php
namespace OP\MediaBundle\Controller\Mobile;
use OP\MediaBundle\Document\Video,
OP\MediaBundle\Form\VideoType,
OP\PostBundle\Document\Post,
OP\PostBundle\Document\Comment,
OP\PostBundle\Form\CommentType,
JMS\Serializer\SerializerInterface,
OP\UserBundle\Security\UserProvider,
OP\UserB... |
<?php
namespace App;
use Cmgmyr\Messenger\Models\Participant;
use Cmgmyr\Messenger\Models\Message;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\Patient as Authenticatable;
use Auth;
class Patient extends Authenticatable
{
use Notifiable;
protected $table = 'patients';
protected... |
<?php
namespace spec\PhpGuard\Listen\Util;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class PathUtilSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('PhpGuard\Listen\Util\PathUtil');
}
function it_should_generate_the_symfony_finder_SplFileInfo_from... |
<?php
/***************************************************************
* SECURITY : Exit if accessed directly
***************************************************************/
if ( !defined( 'ABSPATH' ) ) {
die( 'Direct acces not allowed!' );
}
/***************************************************************
* Back... |
<?php
namespace Adsign\FileManagerBundle\Form;
use Adsign\FileManagerBundle\Entity\Media;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Op... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php namespace CodeCommerce\Http\Requests;
use CodeCommerce\Http\Requests\Request;
class ProductRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to th... |
<?php
namespace Anax;
use PHPUnit\Framework\TestCase;
//use Anax\IpVerify;
/**
* Example test class.
*/
class IpVerifyTest extends TestCase
{
/**
* Just assert something is true.
*/
public function testIpVerifyTrue()
{
$ipVerify = new IpVerify\IpVerify();
$res = $ipVerify->ip... |
<?php
namespace App\Http\Controllers\Admin;
use App\Imports\FeedbacksImport;
use App\Models\FeedBack;
use App\Models\FeedbackModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;
use Maatwebsite\Excel\Validators\ValidationException;
class FeedbackController ext... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... |
@php
if(Auth::user()->department->dept_name == "Finance")
$ext = "finance.layouts.headers";
else
$ext = "layouts.app";
@endphp
@extends($ext)
@section('content')
<?php
if(isset($_GET['month']) && isset($_GET['year'])){
$month = $_GET['month'];
$year = $_GET['year'];
}else{
$month = date('m');
$year = da... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBankTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bank_tasks', ... |
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th> DNI HIS </th>
<th> DNI Padron </th>
<th... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ExportDetailResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{... |
<?php
$user ='root';
$pass= '';
$db= 'test';
$db=new mysqli('localhost', $user , $pass ,$db);
echo "<html>\n";
echo "<head>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\">\n";
echo "</head>\n";
echo "<body>\n";
echo "<div id=\"wrapper\">\n";
echo "<div class=\"container\">\n";
echo "\... |
<?php
namespace App\Http\Controllers;
use App\Employee;
use App\Company;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
class EmployeeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
@extends('layouts.admin')
@section('content')
<h1>Edit User</h1>
<div class="row">
<div class="col-sm-3"><img src="{{($user->photo)?$user->photo->path:'http://placehold.it/400/400'}}" width="50"></div>
<div class="col-sm-9">
{!! Form::model($user,['method'=>'PATCH', 'action'=>['AdminUsersController... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'group',... |
<?php
namespace App\Http\Controllers;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Contracts\View\Factory;
use Illuminate\Support\Facades\DB;
use Illuminate\View\View;
use App\Models\Contest;
class GuestController extends BaseController
{
/**
* Create a new controller instance.
... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\CategoriesData */
$this->title = $model->idcategories_data;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Categories Datas'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->titl... |
<?php
namespace bunq\Model\Generated\Endpoint;
use bunq\Http\BunqResponse;
/**
*/
class BunqResponseNoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentList extends BunqResponse
{
/**
* @return NoteAttachmentBankSwitchServiceNetherlandsIncomingPayment[]
*/
public function getValue(): array
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Register extends CI_Controller {
public function index()
{
$this->load->model('FishModel');
$data["fish_list"] = $this->FishModel->getFishData();
$this->load->view('register', $data);
}
} |
<?php
namespace skrtdev\Prototypes;
trait Prototypeable{
/**
* @param string $name
* @param array $args
* @return mixed
*/
public function __call(string $name, array $args)
{
return Prototypes::call($this, $name, $args);
}
/**
* @param string $name
* @param ... |
<!DOCTYPE html>
<html>
<head>
<title>Gridder.js - Demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://fonts.googleapis.com/css?family=Armata" rel="s... |
<?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
namespace Mdwheele\OpenApi\Tests;
use Mdwheele\OpenApi\OpenApiServiceProvider;
class TestCase extends \Orchestra\Testbench\TestCase
{
public function setUp(): void
{
parent::setUp();
$this->withoutExceptionHandling();
}
protected function getPackageProviders($app)
{
... |
<div class="row section">
<h3 align='center'> ÚLTIMAS NOTICIAS / ARTIGOS </h3>
<div class="divider"> </div>
<br>
<br>
@include('layouts._site._filtros')
<div class="row section ">
@foreach($noticias as $noticia)
<div class="col s12 m3">
<div class="card">
<div class="card-image">
... |
<?php
return [
'max_upload_size' => [
'name' => 'الحجم الأعلى للرفع',
'instructions' => 'حدد أعلى حجم ممكن للرفع.',
'warning' => 'الحجم الأعلى المحدد للرفع على مخدمك: ' . max_upload_size() . 'MB',
],
'max_parallel_uploads' => [
'name' => 'الحد الأعل... |
<?php
namespace App\Repository\Interfaces;
use App\Entity\FileReference;
use App\Repository\ModifierParams\FileReferenceQueryModifierParams;
use Doctrine\ORM\Query;
interface FileReferenceSourceInterface
{
public function findFileReferenceById(int $id, ?FileReferenceQueryModifierParams $modifier = null): ?FileR... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
namespace Config;
/**
* Database Configuration
*
* @package Config
*/
class Database extends \CodeIgniter\Database\Config
{
/**
* The directory that holds the Migrations
* and Seeds directories.
*
* @var string
*/
public $filesPath = APPPATH . 'Database/';
/**
* Lets you choose which connec... |
<nav class="navbar navbar-top navbar-horizontal navbar-expand-md navbar-dark">
<div class="container px-4">
<a class="navbar-brand" href="{{ route('home') }}">
<img src="{{ asset('assets') }}/img/brand/logo.png" /> Software Tracker
</a>
<button class="navbar-toggler" type="button... |
<?php
namespace App\Jobs\Pdf;
use App\Components\Pdf\GenerateHtml;
use App\Models\Design;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades... |
<?php
/**
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
@extends('layouts.admin.app')
@section('content')
<div class="nk-block nk-block-lg">
<div class="nk-block-head">
<div class="nk-block-head-content">
<h4 class="title nk-block-title">Registration Page</h4>
<div class="nk-block-des">
<p><input type="button" class="btn... |
<?php
/*
* This file is part of the OpenClassrooms Symfony course project.
*
* (c) Mickaël Andrieu <mickael.andrieu@solvolabs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Event;
use App\Entity\Comment;
use ... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
use yii\helpers\Html;
//use yii\grid\GridView;
use kartik\grid\GridView;
use yii\widgets\Pjax;
use backend\assets\ICheckAsset;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\StockbalanceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
ICheckAsset::register($t... |
<?php
namespace common\models;
use Yii;
use yii\base\NotSupportedException;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* This is the model class for table "user".
*
* @property string $id
* @property string $username
* @property string $auth_key
* @property string $password_hash
* @property s... |
{!! activity_open($activity, false, ($activity->subject && ($cover = $activity->subject->getCoverImage())) ? $cover->present()->thumbnail : '') !!}
{!! trans('activities.transformed_mailingnode', [
'actorLink' => route('reactor.users.edit', $activity->user->getKey()),
'actorName' => $activity->user->first_name... |
<?php
class rtSitePageToolkit
{
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class RoueElement extends Model
{
use HasFactory;
/** @var array */
protected $fillable = [
'type',
'value',
'win',
'resultText',
'color',
... |
<?php
/**
* PHP SDK for Unlimint API v3. All rights reserved.
*/
namespace Cardpay\model;
use \ArrayAccess;
use \Cardpay\ObjectSerializer;
class PaymentRequestCardAccount implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var ... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Notifications;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Notification;
use League\CommonMark\GithubFlavoredMarkdownConverter;
class NotificationsController extends Controller
{
public function send(Request $request)
{
... |
<?php
declare(strict_types=1);
namespace Ssch\TYPO3Rector\Tests\Rector\v7\v6\MigrateT3editorWizardToRenderTypeT3editor;
use Iterator;
use Rector\Testing\PHPUnit\AbstractCommunityRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class MigrateT3editorWizardToRenderTypeT3editorRectorTest extends Abstra... |
<?php
class Review_model extends CI_Model {
public function add($data)
{
$this->load->database();
$this->db->insert('tblInfo',$data);
}
public function update($id, $data2)
{
$this->load->database();
$this->db->where('id',$id);
$this->db->update('tblInfo',$data2);
}
public function delete($id, ... |
<?php
namespace App\Http\Controllers\Voyager;
use Illuminate\Http\Request;
use TCG\Voyager\Facades\Voyager;
use TCG\Voyager\Http\Controllers\VoyagerBaseController as BaseVoyagerBaseController;
class VoyagerProductsController extends BaseVoyagerBaseController
{
/**
*
*
*/
public function filt... |
<?php
/**
* @author Mike Cochrane <mikec@mikenz.geek.nz>
* @author Nick Pope <nick@nickpope.me.uk>
* @copyright Copyright © 2010, Mike Cochrane, Nick Pope
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
*/
namespace Twitter\Text;
/**
* Twitter ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>R&B Group</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunit... |
<?php
declare(strict_types=1);
namespace Brewmap\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;
class MailNotification extends Notification implements ShouldQueue
{
use Queueable;
public function via(): array
{
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Review;
class ReviewController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Carro extends Model
{
use HasFactory;
protected $fillable = ['modelo_id' , 'placa', 'disponivel', 'km'];
public function rules()
{
return [
'modelo_id'... |
<!DOCTYPE html>
<html>
<head>
<style>
body {
font: 10px sans-serif;
margin: 0;
}
/*attributs de la line déssinée*/
path.line {
fill: none;
stroke: blue;
stroke-width: 1.5px;
}
path.area {
fill: #e7e7e7;
}
.axis {
... |
<?php
declare (strict_types=1);
namespace Rector\Renaming\Rector\Name;
use PhpParser\Node;
use PhpParser\Node\FunctionLike;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\Namespace_;
use PhpParser\Node\Stmt\Propert... |
#!/usr/bin/php
<?php
# SETUP FILE with main file features to loop over all files
$studies = array( "qs", "tbi", "tbi1" );
$subjects = array( "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28");
$times = a... |
<?php
/**
* Drupal_Sniffs_InfoFiles_ClassFilesSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
/**
* Checks files[] entries in info files. Only files containing classes/interfaces
* should be listed.
*
* @category PHP
* @pack... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Articulo;
use App\Partida;
use DB;
use Carbon\Carbon;
class FisicoValoradoStockAlmacenController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http... |
<?php
namespace App\Http\Controllers\ServiceProvider;
use App\Models\Survey;
use App\Models\Users\SocialWorker;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SurveysController extends Controller
{
public function index($project_id)
{
$surveys = Survey::where('project_id', $p... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an even... |
<?php
/**
* User: zach
* Date: 02/10/2014
* Time: 13:52:08 pm
*/
namespace Elasticsearch\Endpoints\Cat;
use Elasticsearch\Endpoints\AbstractEndpoint;
use Elasticsearch\Common\Exceptions;
/**
* Class ThreadPool
*
* @category Elasticsearch
* @package Elasticsearch\Endpoints\Cat
* @author Zachary Tong <zacha... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAboutsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create( 'abouts', function($table){
$table->increments( 'id' );
$table->string( 'na... |
<?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 /* Smarty version Smarty-3.1.5, created on 2014-12-13 23:50:37
compiled from "../templates/mycentrocusto/list_emprestimos.tpl" */ ?>
<?php /*%%SmartyHeaderCode:619351686548cba50a01931-88871806%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (... |
--TEST--
Test posix_ctermid()
--DESCRIPTION--
Gets path name of controlling terminal.
Source code: ext/posix/posix.c
--CREDITS--
Falko Menge, mail at falko-menge dot de
PHP Testfest Berlin 2009-05-10
--SKIPIF--
<?php
if (!extension_loaded('posix')) {
die('SKIP - POSIX extension not available');
}
// ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Steps Into PHP</title>
</head>
<body>
<form>
N: <input type="text" name="num" />
<input type="submit" />
</form>
<?php
if(isset($_GET['num'])) {
$number=intval($_GET['num']);
$result=1;
... |
<?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
| ... |
@extends('hr.layout')
@section('title', 'Loan Type')
@section('main-content')
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="#"> Human Resource <... |
<?php
class clientes_model extends MY_Model {
public $_table = 'clientes';
public $primary_key = 'id_cliente';
protected $return_type = 'array';
public function __construct() {
parent::__construct();
}
public function insert_client() {
$nome_estado = $thi... |
<?php
namespace Wiledia\Backport\Auth\Database;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OperationLog extends Model
{
protected $fillable = ['user_id', 'path', 'method', 'ip', 'input'];
public static $methodColors = [
'GET' => 'success',
... |
<?php
return [
'models' => [
/*
* When using the "HasPermissions" trait from this package, we need to know which
* Eloquent model should be used to retrieve your permissions. Of course, it
* is often just the "Permission" model but you may use whatever you like.
*
... |
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\TestModule5\Service\V1;
use Magento\TestModule5\Service\V1\Entity\AllSoapAndRestFactory;
class AllSoapAndRest implements \Magento\TestModule5\Service\V1\AllSoapAndRestInterface
{
/**
* @v... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
@extends('admin.home')
@section('title','โปรแกรมระบบบริหารงานฌาปนกิจและงานสารบัญ')
@section('header')
<a href='{{url('fundtype')}}' ><i class="fa fa-home text-Primary" style="font-size:25px"></i></a>
รายละเอียดงานฌาปนกิจ
@endsection
@section('content')
<div class="table-responsive">
<table class="table table... |
@extends('layouts.app')
@section('title')
{{config('constant.site_title')}} - {{Auth::user()->getCompany->ori_cmp_org_name}} - Add Permission
@endsection
@section('content')
<div class="content-area">
<div class="row justify-content-center">
<div class="col-sm-7 text-right"><a href="{{url('permissions')}}" class=... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class FeesRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the v... |
<?php
namespace BlancoHugo\Blog\Twig;
use BlancoHugo\Blog\Twig\Middleware\TwigProvidedGlobalsMiddleware;
use BlancoHugo\Blog\Twig\Middleware\TwigProvidedGlobalsMiddlewareFactory;
use Twig\Extra\Markdown;
/**
* The configuration provider for the Twig module
*
* @package BlancoHugo\Blog\Twig
*/
class ConfigProvide... |
<?php
namespace App\ORMModel;
use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
protected $table = 'customer';
function CustomerFilter(){
}
} |
<?php
if(isset($_POST['register'])) {
include('config.php');
$account = $_POST['bankAccount'];
$bankCode = $_POST['bankCode'];
$password = $_POST['password'];
$passwordRepeat = $_POST['passwordRepeat'];
if($password == $passwordRepeat) {
$passwordHash = crypt($password);
$sql = ... |
<?php
namespace sergeymakinen\yii\config\tests;
use sergeymakinen\yii\config\Config;
use yii\helpers\ArrayHelper;
abstract class TestCase extends \sergeymakinen\yii\tests\TestCase
{
protected function createConfig(array $config = [])
{
return new Config(ArrayHelper::merge($this->getDefaultConfig(), $... |
<?php
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends ContainerAwareCommand
{
/**
* {@inheritdoc}
*/
protected function ... |
<link href="/admin/assets/img/brand/favicon.png" rel="icon" type="image/png">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<!-- Icons -->
<link href="/admin/assets/js/plugins/nucleo/css/nucleo.css" type="text/css" rel="stylesheet" />
<link hre... |
<?php namespace App\Controllers;
use CodeIgniter\Controller;
use App\Models\PollingStationModel;
class PollingStation extends Controller
{
public function index()
{
$model = new PollingStationModel();
$data['pollingstations'] = $model->orderBy('id', 'DESC')->findAll();
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DO extends Model
{
protected $table='detail_order';
protected $fillable=['idReceipt','idProduct','quantity'];
public $timestamps=false;
} |
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<sp... |
<?php
use yii\helpers\Url;
$this->title = '我的积分';
?>
<p style="width: 100%; height: 15%; float:left;"> </p>
<style>
#top{ height: 220px; background-color: #3399CC; color: #FFFFFF; text-align: left;
position: relative; margin-bottom: 15px;
}
.score-title{ height: 20px; line-height: 20px; font-... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDiscountPackageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('discoun... |
<?php
declare(strict_types=1);
namespace Kafka\Consumer\Commit;
class VoidCommitter implements Committer
{
public function commitMessage(): void
{
}
public function commitDlq(): void
{
}
} |
<?php
/**
* @link https://github.com/yiiviet/yii2-validator
* @copyright Copyright (c) 2018 Yii Viet
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
*/
namespace yiiviet\validator;
use yii\base\InvalidConfigException;
use yii\validators\RegularExpressionValidator;
/**
* Lớp TelN... |
<?php
namespace Addons\Exam\Controller;
use Think\ManageBaseController;
class ExamController extends ManageBaseController {
function exam_question() {
$param ['exam_id'] = I ( 'id', 0, 'intval' );
$url = addons_url ( 'Exam://Question/lists', $param );
// dump($url);
redirect ( $url );
}
function exam_answ... |
<?php
use Koff\Transliterator\Transliterator;
use Koff\Transliterator\Mapping\Lang;
/**
* @author Vladimir Sadicov <sadikoff@gmail.com>
*/
class TransliteratorBGTest extends \PHPUnit\Framework\TestCase
{
/** @var Transliterator */
public static $ts;
public static function setUpBeforeClass()
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.