text stringlengths 2 1.03M |
|---|
<?php
namespace Sessions;
class Session
{
/**
* @param $key
* @return mixed|string
* To get Session value
*/
public function getSession($key){
return isset($_SESSION[$key])? $_SESSION[$key] : false;
}
/**
* @param $key
* @param $value
* To set Session value
... |
<script type="text/javascript">
$(document).ready(function(){
$("#simpan").click(function(){
var nama = $('#nama').val();
var status = $('input[name = status]:checked').val();
if (nama == "") {
$('.form-group.nama.col-md-12').attr('class', 'form-group nama has-error col-md-12')
$('.vali').... |
<?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
use Illuminate\Database\Seeder;
class Cepag_VinTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('cepag_vin')->insert([
[
'vin_id' => '1',
'cepag_id' => '1',
... |
<?php
declare(strict_types=1);
namespace Arcanedev\SeoHelper\Tests\Entities;
use Arcanedev\SeoHelper\Entities\MetaCollection;
use Arcanedev\SeoHelper\Tests\TestCase;
/**
* Class MetaCollectionTest
*
* @package Arcanedev\SeoHelper\Tests\Bases
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
*/
class MetaC... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSitesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sites', function ... |
<?php
class WPML_Media_Set_Initial_Language_Factory implements IWPML_Backend_Action_Loader {
public function create() {
global $sitepress, $wpdb;
return new WPML_Media_Set_Initial_Language( $wpdb, $sitepress->get_default_language() );
}
} |
<?php
namespace Modules\Campaigns\Entities;
class UserData
{
public $signed;
// structure : { 'today': number, 'week': number, 'month':number}
public $numberOfReadArticles;
// boolean
protected $validAddress;
public function __construct($signed, $numberOfReadArticles)
{
$thi... |
<?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.
*/
declare(strict_types=1);
namespace Sylius\Behat\Service;
class ResponseLoader implements ResponseLoa... |
@isset($categories)
<div class="row margin-top25">
<div class="form-group">
<div class="col-sm-4 text-right">
<label for="categories_delivery">@lang('delivery_auto.categories')</label>
</div>
<div class="col-sm-8">
<select name="categories_... |
<?php
/**
* This is the model class for table "VSFirmaDigital".
*
* The followings are the available columns in table 'VSFirmaDigital':
* @property integer $Id
* @property string $IdCompania
* @property string $Clave
* @property string $FechaCaducidad
* @property string $EmpresaCertificadora
* @property integ... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogSearch\Test\Unit\Model\Indexer;
use \Magento\Framework\Indexer\Dimension;
use Magento\Framework\Indexer\DimensionProviderInterface;
use Magento\Framework\TestFramework\Unit\Helper\ObjectMana... |
<?php
namespace AsyncAws\Lambda\Exception;
use AsyncAws\Core\Exception\Http\ClientException;
use Symfony\Contracts\HttpClient\ResponseInterface;
/**
* One of the parameters in the request is invalid.
*/
final class InvalidParameterValueException extends ClientException
{
/**
* The exception type.
*/
... |
@extends('layouts.backend.app')
@section('title','tag')
@push('css')
@endpush
@section('content')
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFacilityCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('faci... |
<?php
namespace Admin\Controller;
use Admin\Builder\AdminConfigBuilder;
use Admin\Builder\AdminListBuilder;
require_once(ONETHINK_ADDON_PATH . 'Report/Common/function.php');
class ReportController extends AdminController
{
public function lists($page = 1, $r = 20){
$map['status'] = array('egt', 0);
... |
<?php include("path.php"); ?>
<?php include(ROOT_PATH . "/app/controllers/users.php");
guestOnly();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=gdevice-width, initial-scale=1.0">
<!-- Font Awesome đây là thư viện biểu tượng -->
<script src="htt... |
<!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') }} || @... |
<?php
session_start();
require_once 'template/head.php';
require_once 'template/banner.php';
require_once 'template/style_login.php';
?>
<div class="form">
<ul class="tab-group">
<li class="tab">
<a href="#signup">Sign Up</a>
</li>
<... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Model;
class Admin extends Authenticatable
{
protected $guard = 'admin';
protected $primaryKey = "id";
} |
<?php
/*
* PHP-Auth (https://github.com/delight-im/PHP-Auth)
* Copyright (c) delight.im (https://www.delight.im/)
* Licensed under the MIT License (https://opensource.org/licenses/MIT)
*/
namespace Comet;
class MissingCallbackError extends AuthError {} |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLastsPasswordUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::c... |
<?php
namespace Guttmann\NautCli\Helper;
use Dotenv\Dotenv;
use Dotenv\Exception\InvalidPathException;
use Guttmann\NautCli\Service\DeployLogService;
use Guttmann\NautCli\Service\DeployService;
use Guttmann\NautCli\Service\FetchLatestService;
use Guttmann\NautCli\Service\SnapshotDownloadService;
use Guttmann\NautCli\S... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... |
<?php
namespace OptimistDigital\NovaBlog\Models;
use Illuminate\Database\Eloquent\Model;
use OptimistDigital\NovaBlog\NovaBlog;
class Post extends Model
{
public $related_posts;
protected $casts = [
'published_at' => 'datetime',
'data' => 'object'
];
protected $dates = [
'cr... |
<?php
use app\components\core\Migration;
/**
* Class m210129_193236_create_boxes_table
*/
class m210129_193236_create_boxes_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->dropTable('boxes');
$this->createTable('boxes', [
'id' => $thi... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Package extends Model
{
use SoftDeletes;
protected $table = 'packages';
} |
<?php
namespace App\Ninja\Repositories;
use App\Models\Company;
class NinjaRepository
{
public function updatePlanDetails($clientPublicId, $data)
{
$company = Company::whereId($clientPublicId)->first();
if (!$company) {
return;
}
$corporation = $company->corporat... |
<?php
namespace App\Services;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
use App\Services\ImageUploader;
use App\UserStatus;
use App\FcmToken;
class UserService {
public function __construct(){
$this->uploader = new ImageUploader;
$this->fcm = new FcmToken;
}
public... |
<?php
/**
* Customer Subscription Payment Overdue email template
*/
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
?>
<?php do_action('woocommerce_email_header', $email_heading); ?>
<p><?php printf(__('Your recent subscription renewal order on %s is late for payment.', 'subscriptio'), get_op... |
@extends('admin.app')
@section('title') {{ $pageTitle }} @endsection
@section('content')
<div class="app-title">
<div>
<h1><i class="fa fa-cogs"></i> {{ $pageTitle }}</h1>
</div>
</div>
@include('admin.partials.flash')
<div class="row user">
<div class="col-md-3">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class SecretariaAlumnosFinalizaron extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Secre... |
<?php
if (is_page('ie-8')) {
include(TEMPLATEPATH . '/index-ie.php');
} else {
?>
<div id="contentInterna">
<?php
get_header();
include ('sidebar-programador.php');
?>
<div id="contentInterna_miolo">
<?php while (have_posts()): the_post(); ?>
... |
<ul class="sidebar-menu">
<li class="header">{{ trans('adminlte_lang::message.header') }}</li>
<!-- Optionally, you can add icons to the links -->
<li class="active"><a href="{{ url('home') }}"><i class='fa fa-link'></i> <span>{{ trans('adminlte_lang::message.home') }}</span></a></li>
<li><a href="#"><i... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\SchoolCategory;
use App\Gallary;
use Session;
use Image;
class GallaryController extends Controller
{
public function Gallary(Request $request){
Session::put('page','gallary');
$g... |
@extends('layouts.app', ['page' => 'vendors'])
@section('title', __('messages.create_vendor'))
@section('page_header')
<div class="page__heading d-flex align-items-center">
<div class="flex">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li... |
<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/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js... |
<?php
namespace Dialect\Saasify\Builders;
use Dialect\Saasify\Models\SaasifyPlan;
use Dialect\Saasify\Plan;
class PlanBuilder extends Builder {
function __construct($builder = null) {
parent::__construct(SaasifyPlan::class, $builder);
}
protected function convertModel($rawModel){
$plan = new Plan($rawModel)... |
<?php
namespace RectorPrefix20211019;
if (\class_exists('tx_linkvalidator_ModFuncReport')) {
return;
}
class tx_linkvalidator_ModFuncReport
{
}
\class_alias('tx_linkvalidator_ModFuncReport', 'tx_linkvalidator_ModFuncReport', \false); |
<?php
namespace Sanjab\Tests\Browser;
use Laravel\Dusk\Browser;
use Sanjab\Tests\TestCase;
use Sanjab\Tests\Models\User;
class DashboardTest extends TestCase
{
public function testRedirectUnathorizedUser()
{
$this->browse(function (Browser $browser) {
$browser->visit(route('sanjab.dashboa... |
<?php
/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org> //
// available at http://getid3.sourceforge.net //
// or http://www.getid3.org //
// also https://github.com/JamesHeinrich/... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\Request;
use Session;
class AuthControll... |
<?php
/**
* Created by PhpStorm.
* User: vy_Thao
* Date: 4/18/2017
* Time: 11:49 PM
*/
?>
<!--<head>
<link rel="stylesheet/less" type="text/css" href="<?php /*echo public_url()*/ ?>master.css">
</head>-->
<div id="title">
<a href="<?php echo base_url('product/category/' . $category->parent_id) ?>">
... |
<?php
use App\Concert;
use App\Order;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class OrderTest extends TestCase
{
use DatabaseMigrations;
/** @test **/
function creating_an_order_f... |
<?php
class UserService extends Service {
public static function check() {
//check if the user has already signed
return Session::has('username') ? true : false;
}
public static function check_old_password($username, $password) {
$user = User::where('username','=',$username)->first... |
@extends("layouts.page")
@section("title", "兌換成功")
@section("hideBtnBack", "")
@section("css")
<link rel="stylesheet" type="text/css" href="{{ asset('css/check-cross-anime.css') }}">
@endsection
@section("content")
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.2 130.2">
<circle class="pat... |
<?php
namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class CollectController extends Controller
{
public function __construct ()
{
$this->middleware('auth' ,[
'only'=>['make']
]);
}
public function make(Request $request){
// dd (1);
$type=$re... |
@extends('admin.master')
@section('main')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div... |
<?php
namespace App\Virtual\V1\User\Requests;
/**
* @OA\Schema(
* title="Cars model store request",
* description="Cars model request body data",
* type="object",
* required={"make_id", "model"}
* )
*/
class CarsModelStoreRequest
{
/**
* @OA\Property(
* title="Make id",
*... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Surat_rs extends CI_Controller
{
// main page
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->model('SuratObat_model');
$this->load->model('SuratPeringatan_model');
$this->... |
<div class="content-header">
<h4><i class="fa fa-<?=$access->module_icon?>"></i> <?=$title?></h4>
<small>Kolom dengan tanda <b class="required-field">*</b> wajib diisi!</small>
</div>
<div class="content-body">
<div class="row">
<form id="form" class="" action="<?=base_url()?>ret_role/<?=$action?>" method="po... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserLaporanLaporanAPBUController extends Controller
{
public function index(){
return view("user.laporan.apbu.index");
}
} |
<!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>
<form action="/book" method="POST">
@csrf
<div c... |
<html>
<head>
<link rel="shortcut icon" href="/SurveyBuilder/favicon.ico"/>
<title>401 - SurveyBuilder - Unauthorized</title>
<style>
.error-con{
text-align:center;
}
.error-con h1{
font-size:55px;
}
.error-con h3{
font-size:35px;
}
</style>
</head>
<body>
<div class="error-con">
<h1>401 SurveyBuilder</h1>
<h3>Una... |
<?php
namespace Devio\Pipedrive\Resources;
use Devio\Pipedrive\Exceptions\PipedriveException;
use Devio\Pipedrive\Http\Request;
use Devio\Pipedrive\Resources\Basics\Entity;
use Devio\Pipedrive\Resources\Basics\Resource;
class Webhooks extends Resource
{
/**
* The API caller object.
*
* @var Reques... |
<?php date_default_timezone_set('Asia/Kuala_Lumpur'); ?>
<div class="section"><div class="w-container">
<h1 class="title">Event Registration</h1>
<?php if (!Yii::app()->user->isGuest): ?>
<h4 class="title nopadding">You're registering for</h4>
<h5 class="title"> <span class="text-span"><?php echo HUB:... |
@extends('layouts.app')
@section("title",trans("site.homepage"))
@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">
... |
<?php
namespace api\modules\v1\controllers;
use yii\rest\ActiveController;
/**
* Country Controller API
*
* @author Budi Irawan <deerawan@gmail.com>
*/
class CountryController extends ActiveController
{
public $modelClass = 'api\modules\v1\models\Country';
}
/*
GET /countries: list all countries
HEAD /co... |
<?php
namespace Ignite\Application\Navigation;
use Closure;
use Illuminate\Support\Arr;
use InvalidArgumentException;
class PresetFactory
{
/**
* Navigation presets.
*
* @var array
*/
protected $presets = [];
/**
* Register navigation preset.
*
* @param array|string ... |
<?php
namespace App\Events;
use App\Event;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ScheduledClassEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $event;
/**
* Create a new event inst... |
<?php
/*
* This file is part of the Ariadne Component Library.
*
* (c) Muze <info@muze.nl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace arc;
/**
* Any method statically called on this class
* will reroute the call... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFrontpagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('frontpages',... |
<?php
namespace Backend\Http\Controllers;
use Backend\Http\Requests\Recruitment\RecruitmentRequestAdd;
use Backend\Http\Requests\Recruitment\RecruitmentRequestUpdate;
use Backend\Repositories\Recruitment\RecruitmentRepositoryInterface;
use Backend\Traits\DeleteTrait;
use Backend\Traits\StorageImageTrait;
class Admin... |
<?php
namespace App\Models\Quiz;
use App\Traits\ValidationTrait;
use Illuminate\Database\Eloquent\Model;
class Quiz extends Model
{
use ValidationTrait;
use ValidationTrait {
ValidationTrait::validate as private parent_validate;
}
public function __construct( array $attributes = array()) {
... |
<?php
declare(strict_types=1);
namespace Doctrine\Tests\RST;
use Doctrine\RST\Environment;
use Doctrine\RST\Nodes\Node;
use Doctrine\RST\Toc\GlobSearcher;
use Doctrine\RST\Toc\ToctreeBuilder;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class ToctreeBuilderTest extends TestCase
{
... |
<th
{{ $attributes->merge(['class' => 'px-4 py-3'])->only('class') }}
>
@unless ($sortable)
<span class="text-left text-xs leading-4 font-medium text-cool-gray-500 uppercase tracking-wider">{{ $slot }}</span>
@else
<button {{ $attributes->except('class') }} class="flex items-center space-x-1... |
<?php
namespace Foo;
class CoveredParentClass
{
private function privateMethod()
{
}
protected function protectedMethod()
{
$this->privateMethod();
}
public function publicMethod()
{
$this->protectedMethod();
}
}
class CoveredClass extends Cove... |
<?php
/**
* 插件环境预热
* @author dogstar 20200312
*/
require_once dirname(__FILE__) . '/../public/init.php';
$folder = array(
'config',
'plugins',
'data',
'public/portal/page',
'public/portal',
'src/app/Api',
'src/app/Domain',
'src/app/Model',
'src/app/Common',
'src/portal/Api',... |
<script src="<?php echo base_url(); ?>assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/moment.min.js"></script>
<link href="<?php echo base_url(); ?>assets/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/cs... |
<?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 RectorPrefix20211221\Symfony\Component\Process\Pipes;
use RectorPrefix20... |
{!! Form::open(array('url'=>'almacen/categoria','method'=>'GET','autocomplete'=>'off','role'=>'search'))!!}
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" name="searchText" placeholder="BUSCAR..." value="{{$searchText}}">
<span class="input-group-btn">
<button type="s... |
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... |
<?php
/**
* CodeIgniter
*
* An open source app development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... |
<script>
cat.doc_estado_add_window = function(record) { // doc_estado record
var doc_id = Ext.getCmp('cat_form_cat_id_field').getValue();
var w_config = {
id: 'cat_doc_estado_add_window',
title: 'Cambiar estado a',
modal: true,
width: 450,
height: 180,
layout: 'border',
items:[{
xtype: '... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateAp3debatec1m2Request;
use App\Http\Requests\UpdateAp3debatec1m2Request;
use App\Repositories\Ap3debatec1m2Repository;
use App\Http\Controllers\AppBaseController;
use Illuminate\Http\Request;
use Flash;
use Response;
class Ap3debatec1m2Controller exten... |
<div class="px-12 py-8 bg-gray-200 border border-gray-300 rounded-lg">
@if (isset($heading))
<div class="mb-4 text-lg font-bold">{{ $heading }}</div>
@endif
{{ $slot }}
</div> |
<?php
/**
* RssBridgeYoutube
* Returns the newest videos
* WARNING: to parse big playlists (over ~90 videos), you need to edit simple_html_dom.php:
* change: define('MAX_FILE_SIZE', 600000);
* into: define('MAX_FILE_SIZE', 900000); (or more)
*/
class YoutubeBridge extends BridgeAbstract {
const NAME = 'YouTube Bri... |
@extends('layouts.auth-master')
@section('page-title', trans('app.reset_password'))
@section('content')
<div class="card card-primary">
<div class="card-header"><h4>@lang('app.forgot_your_password')</h4></div>
@include('partials.messages')
<div class="card-body">
<form role="form" action="... |
<?php
namespace Domatskiy\PickPoint\Exception;
class NotFoundException extends \Exception
{
} |
<?php
namespace WorkWechatSdk\Kernel\Clauses;
/**
* Class Clause.
*/
class Clause
{
/**
* @var array
*/
protected $clauses = [
'where' => [],
];
/**
* @param mixed ...$args
*
* @return $this
*/
public function where(...$args)
{
$this->clauses['... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use App\Http\Traits\Uuids;
use Storage;
use App\Exceptions\DatabaseTransactionErrorException;
use Illuminate\Support\Facades\DB;
class Goods extend... |
@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);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace HyperfTest\Constants;
use Hyperf\Constants\AnnotationReader;
use Hype... |
<?php
/*
* This file is part of the Behat.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Behat\Behat\Context\ContextClass;
use Behat\Testwork\Suite\Suite;
/**
* Simpl... |
<?php
class Kelompok extends CI_Controller{
public function __construct()
{
parent::__construct();
$this->simple_login->cek_login();
$this->simple_login->cek_level(2);
}
public function index()
{
$data['kelompok']=$this->Madmin->get_kelompok();
$this->template->set('header', 'Kelompok');
$this->tem... |
<?php
class Home extends TPage
{
function button1_clicked($sender, $param)
{
$this->link1->NavigateUrl = 'http://www.google.com';
}
function button2_clicked($sender, $param)
{
$this->link2->Target = '_self';
}
function button3_clicked($sender, $param)
{
$this->link3->Text = 'PradoSoft.com';
}
functi... |
<?php
/**
* Glav.in
*
* A very simple CMS
*
*
* @package Glav.in
* @author Matt Sparks
* @copyright Copyright (c) 2013, Matt Sparks (http://www.mattsparks.com)
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link http://glav.in
* @since 1.0.0-alpha
*/
$page_name = '';
$page_cont... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRolesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('roles', function ... |
<?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
// Heading
$_['heading_title'] = 'Недавняя активность';
// Text
$_['text_extension'] = 'Расширения';
$_['text_success'] = 'Настройки успешно изменены!';
$_['text_edit'] = 'Редактирование';
$_['text_activity_register'] = '<a href="customer_id=%... |
<?php
namespace App\Http\Resources\Admin\StoreResource;
use App\Models\Store;
use Illuminate\Http\Resources\Json\ResourceCollection;
class StoreCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @retu... |
<?php
declare(strict_types=1);
namespace ScottSmith\Doctrine\Configuration;
use ScottSmith\Doctrine\Exception\ConfigurationException;
class ConfigurationValidator
{
/**
* @param array $configuration
* @throws ConfigurationException
*/
public static function validateConnections(array $configur... |
<?php
ob_start();
?>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<table border=\"1\" align=\"center\">
<font size='6' color='#084B8A'><center>REPORTE DE COMPRAS</center></font>
<tr bgcolor=\"#FDFEFE\" align=\"center\" height='40'>
<th b... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Portfolio Details - Beatnik Technology Limited</title>
<meta content="" name="descriptison">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="asset... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dosen extends CI_Controller {
function __construct(){
parent::__construct();
if($_SESSION["logged_in"] != 'login') {
redirect(base_url("login"));
}
$this->load->model('m_dosen');
$this->load->model('m_master');
}
public... |
<?php
namespace Modules\Logistic\Http\Controllers;
use App\Repositories\ResponseRepository;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Http;
use stdClass;
class PlcController extends Control... |
<?php
namespace Cryptopay\Utils;
use Cryptopay\AbstractResponse;
use Cryptopay\Exceptions\DirectoryException;
class DirectoryUtils
{
private const STEPS = 5;
/**
* @param string $path
* @param string $folderName
* @return string
* @throws DirectoryException
*/
public static func... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php
print "<tr>\n";
print "<td id=\"addons\" align=\"left\" valign=\"middle\"><span class=\"parthead\">".$i18n->calendar."</span></td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td class=\"b-border\" id=\"addons\" align=\"center\" valign=\"middle\">\n";
?> |
<?php
namespace Aventura\Wprss\Core\Block\Html;
/**
* Base functionality for a regular tag.
* A regular tag is one that requires a closing tag, e.g. is not self-closing.
*/
class AbstractRegularTag extends AbstractTag
{
/**
* Renders the tag HTML.
*
* @since 4.10
*/
public function get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.