text stringlengths 2 1.03M |
|---|
<?php
namespace ishop\base;
use ishop\Db;
use Valitron\Validator;
abstract class Model{
public $attributes = [];
public $errors = [];
public $rules = [];
public function __construct(){
Db::instance();
}
public function load($data){
foreach($this->attributes as $name => $v... |
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200924101347 extends AbstractMigration
{
public function getDescription(): string
{
... |
<?php $user = $this->session->userdata('user');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Data Monitoring Pelanggaran Siswa SMK Muhammadiyah Kotaagung</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="... |
<?php
namespace App\Http\Livewire\Follow;
use Livewire\Component;
class Button extends Component
{
public $user;
public function mount($user)
{
$this->user = $user;
}
public function follow()
{
auth()->user()->follow($this->user);
// untuk realtime
$this->emit... |
<?php
namespace Pagamento\Form;
use Zend\Form\Form;
class PagamentoPsqForm extends Form {
public function __construct($stPagamentos = array(), $tpPagamentos = array()) {
parent::__construct(NULL);
$this->stPagamento = $stPagamentos;
$this->tpPagamento = $tpPagamentos;
$this->se... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterImagenInstructoresTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('instructores', function (Blueprint $table) {
... |
<?php
/**
* Aurora - A HTTP Application Server of PHP Script
*
* @author panlatent@gmail.com
* @link https://github.com/panlatent/aurora
* @license https://opensource.org/licenses/MIT
*/
namespace Aurora\Http\Client\Exception;
use Aurora\Http\Client\Exception;
class RequestTimeoutException extends Exceptio... |
@extends('layouts.master')
@push('css')
@endpush
@section('content-header')
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Dashboard</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#"... |
<?php
declare(strict_types=1);
namespace Keboola\DbExtractor\Adapter\Tests\ODBC;
use Keboola\DbExtractor\Adapter\ODBC\OdbcExportAdapter;
use Keboola\DbExtractor\Adapter\Query\DefaultQueryFactory;
use Keboola\DbExtractor\Adapter\Query\QueryFactory;
use Keboola\DbExtractor\Adapter\Tests\AbstractExportAdapterTest;
use ... |
<?php
namespace Tiderjian\Admin\Form\Field;
use Encore\Admin\Form\Field\MultipleImage as EncoreMultipleImage;
class MultipleImage extends EncoreMultipleImage
{
use FixMultipleBug;
} |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\AnnouncedPuResults */
$this->title = 'Create Announced Pu Results';
$this->params['breadcrumbs'][] = ['label' => 'Announced Pu Results', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="announced-pu-... |
<?php
namespace CodeCloud\Bundle\ShopifyBundle\Exception;
class StoreNotAuthenticatedException extends \RuntimeException
{
public function __construct($storeName)
{
parent::__construct(sprintf('Store "%s" is not authenticated', $storeName));
}
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/admin.css">
<... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Inventory_stock_check extends CI_Controller {
function __construct() {
parent::__construct();
$module =$this->load->model('Reports_all_model');
}
public function index(){
//I'm... |
<?php namespace App\Model;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class TournamentGroups extends Model {
use SoftDeletes;
protected $table = 'tournament_groups';
protected $dates = ['deleted_at'];
protected $fillable = array('id','tournament_id','name' );
pu... |
<?php
/**
* HiPay Enterprise SDK WooCommerce
*
* 2018 HiPay
*
* NOTICE OF LICENSE
*
* @author HiPay <support.tpp@hipay.com>
* @copyright 2018 HiPay
* @license https://github.com/hipay/hipay-enterprise-sdk-woocommerce/blob/master/LICENSE.md
*/
if (!defined('ABSPATH')) {
exit;
}
/**
*
* @author ... |
<?php get_header();?>
<div id="primary">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div class="met... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/scheduler/v1/target.proto
namespace Google\Cloud\Scheduler\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* App Engine target. The job will be push... |
@extends('voyager::master')
@section('css')
<link rel="stylesheet" href="{{ config('voyager.assets_path') }}/css/media/media.css"/>
<link rel="stylesheet" type="text/css" href="{{ config('voyager.assets_path') }}/js/select2/select2.min.css">
<link rel="stylesheet" href="{{ config('voyager.assets_path') }}/... |
@extends('layouts.master')
@section('css')
<!-- Internal Data table css -->
<link href="{{ URL::asset('assets/plugins/datatable/datatables.min.css') }}" rel="stylesheet" />
<link href="{{ URL::asset('assets/plugins/datatable/responsive.dataTables.min.css') }}" rel="stylesheet">
<link href="{{ URL::asse... |
<?php
return [
'actions' => 'Actions',
'show' => 'Show',
'edit' => 'Edit',
'delete' => 'Delete',
'back' => 'Back',
'cancel' => 'Cancel',
'confirm' => 'Confirm',
'submit' => 'Submit',
'translate' => 'Translate',
'add' => '+ Add',
]; |
<?php
declare(strict_types=1);
namespace PhpPg\PgProto3\Messages;
enum AuthType: int
{
case AuthTypeOk = 0;
case AuthTypeCleartextPassword = 3;
case AuthTypeMD5Password = 5;
case AuthTypeSCMCreds = 6;
case AuthTypeGSS = 7;
case AuthTypeGSSCont = 8;
case AuthTypeSSPI = 9;
case AuthTypeSASL = 10;
case AuthTypeSASLCont... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Perbaikankolomdupak extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('dupa... |
<?php
/*
* This file is part of the Arnapou GW2 API Client package.
*
* (c) Arnaud Buathier <arnaud@arnapou.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Arnapou\GW2Api\Model;
/**
*
* @method string getScores(... |
[expect php]
[file]
<?php
require('Phalanger.inc');
class test {
public $p1 = 1;
public $p2 = 2;
public $p3;
};
$obj = new test;
$obj->p2 = 'A';
$obj->p3 = 'B';
$copy = clone $obj;
$copy->p3 = 'C';
echo "object\n";
__var_dump($obj);
echo "Clown\n";
__var_dump($copy);
echo "Done\n";
?> |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use Exception;
use Carbon\Carbon;
use App\Models\User;
use App\Models\Point;
use App\Models\Config;
class UsersController extends Controller
{
public $config;
public $skin;
public $rulesPassword;
public $userModel;
pub... |
<!doctype html>
<html lang="es">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" href="<?php echo base_url(); ?>assets/global/img/favicon.png">
<link rel="shortcut icon" hr... |
<?php
namespace NB\AdminBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NBAdminBundle extends Bundle
{
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up()
{
Schema::create('regular-laravel-package-tools_table', function (Blueprint $table) {
$table->bigIn... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace common\models\query;
use yii\db\ActiveQuery;
use common\models\Menu;
/**
* This is the ActiveQuery class for [[\common\models\Menu]].
*
* @see \common\models\Menu
*/
class MenuQuery extends ActiveQuery
{
/**
* @return $this
*/
public function active()
{
$this->andWhe... |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... |
<?php
/* TwigBundle:Exception:exception.css.twig */
class __TwigTemplate_0e80f9e20cf5f8f1b50b57dc8091bc02e801212841fc18783a8540afbf0111b9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... |
<?php
namespace Direccion;
use Illuminate\Database\Eloquent\Model;
class Meta extends Model
{
protected $table = 'Metas';
protected $primarykey = 'id_m';
protected $timestamps = false;
protected $filleable =[
'metas_empresariales',
'Objetivo_Empresarial_id_oe'
];
protected $guard... |
<?php
return [
'user.passwordResetTokenExpire' => 3600,
'supportEmail'=> 'csadmin@weshop.com.vn',
'Url_User_Back_end'=>'http://s.weshop.asia',
'Url_FrontEnd'=>'http://v3.weshop.com.vn',
'Url_wallet_api' => 'http://v3.weshop.com.vn',
'ENV' => true, // True --> envaroment Develop , false : Prod
... |
<h1>Listado de Frutas</h1>
<h3><a href="{{ action('FrutaController@create') }}">Crear Fruta</a></h3>
<ul>
@foreach ($frutas as $fruta)
<li>
<a href="{{action('FrutaController@detail', ['id' => $fruta->id])}}">{{$fruta->nombre}}</a>
</li>
@endforeach
</ul> |
@extends('admin.common.layout')
@section('body')
<body>
<div class="x-body">
<form class="layui-form">
{{ csrf_field() }}
<div class="layui-form-item">
<label for="name" class="layui-form-label">
<span class="x-red">*</span>角色名称
... |
@extends('app')
@section('content')
<head>
<title>Ubah Tugas Pokok</title>
<style type="text/css">
body {
text-align: left;
font-size: 14px;
font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
}
</style... |
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use yii\bootstrap4\ActiveForm;
use yii\helpers\Html;
/* @var yii\web\View $t... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8">
@include('threads.list_item')
@if ($replies && $replies->isNotEmpty())
@foreach($replies as $reply)
@include... |
<?php
final class PHUIBoxExample extends PhabricatorUIExample {
public function getName() {
return pht('Box');
}
public function getDescription() {
return pht("It's a fancy or non-fancy box. Put stuff in it.");
}
public function renderExample() {
$content1 = 'Asmund and Signy';
$content2 ... |
<?php if(empty($giaovien)){ ?>
<tr class='no-data'><td colspan='4' class='text-muted text-center'>không tìm thấy lớp</td></tr>
<?php }else{
foreach($giaovien as $user){?>
<tr id="giaovien-<?= Encryption::encryptId($user["id"]); ?>">
<td><span class="text-primary"><?= $user["ten"]; ?></span></td>
<td... |
@extends('admin.admin_master')
@section('admin')
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<div class="content-wrapper">
<div class="container-full">
<!-- Main content -->
<s... |
<?php
declare(strict_types=1);
/*
* This file is part of the humbug/php-scoper package.
*
* Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>,
* Pádraic Brady <padraic.brady@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed ... |
@extends('layouts.app', ['title' => 'Persembahan'])
@section('content')
<div class="d-flex justify-content-between">
<h3>Persembahan</h3>
<div>
{{-- <a href="{{ route('offerings.excel') }}" class="btn btn-secondary"><i class="fa fa-print"></i> Print Laporan</a> --}}
<!-- But... |
<?php
namespace Yuansfer\Api;
use Yuansfer\Exception\InvalidParamException;
/**
* Class Add
*
* @package Yuansfer\Api
* @author FENG Hao <flyinghail@msn.com>
* @see https://docs.yuansfer.com/api-reference-v3/payments/in-store-payment/scan-qrcode/add
*
* @method $this setStoreAdminNo(string $storeAdminNo)... |
<?php
namespace Dixit\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @v... |
<?php
use Illuminate\Database\Seeder;
use Faker\Generator as Faker;
use App\TravelPackage as TravelPackage;
class TravelPackagesSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run(Faker $faker) {
for ($i = 0; $i < 10; $i++) {
... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to... |
<?php
declare(strict_types=1);
namespace App\User;
use App\Output\ResponseFactory;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
class PostUsersAuth
{
/** @var User|null */
private $user;
/** @var Repository */
private $repository;
public function __constru... |
<?php echo '<?php' ?> defined('SYSPATH') or die('No direct script access.');
class <?php echo $migration_name ?> extends Migration
{
public function up()
{
// $this->create_table
// (
// 'table_name',
// array
// (
// 'updated_at' => array('datetime'),
// 'created... |
<?php
namespace App\models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class mod_model extends Model
{
//主键
public $primaryKey = '';
//主键是否支持自增,默认支持
public $incrementing = true;
//表名称
public $table = '';
//使用其他数据库连接
p... |
<?php
declare(strict_types=1);
namespace Liquetsoft\Fias\Elastic\Tests\Storage;
use Elasticsearch\Client;
use Liquetsoft\Fias\Component\Exception\StorageException;
use Liquetsoft\Fias\Elastic\ClientProvider\ClientProvider;
use Liquetsoft\Fias\Elastic\IndexBuilder\IndexBuilder;
use Liquetsoft\Fias\Elastic\IndexMapper... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\Group;
use App\Models\UserGroup;
use Illuminate\Http\Request;
class UserGroupsController extends Controller
{
public function attach(Request $request)
{
$userId = $request->userId;
$groupId = $request->groupId;
... |
<?php
namespace app\modules\pkl\models;
use Yii;
/**
* This is the model class for table "prodi".
*
* @property string $visi
* @property string $misi
* @property string $alamat
* @property string $website
* @property string $telpon
* @property string $email
* @property string $nama
* @property int $idorg
... |
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Integration\Model\Oauth;
use Magento\Authorization\Model\UserContextInterface;
use Magento\Framework\Oauth\Exception as OauthException;
use Magento\Framework\Oauth\Helper\Oauth as OauthHelper;
use ... |
<a href="{{ route('vacantes.index') }}" class="text-white text-sm uppercase font-bold p-3 {{ Request::is('vacantes') ? 'bg-green-500' : '' }}">Ver vacantes</a>
<a href="{{ route('vacantes.create') }}" class="text-white text-sm uppercase font-bold p-3 {{ Request::is('vacantes/create') ? 'bg-green-500' : '' }}">Nueva vac... |
<?php
use Illuminate\Database\Seeder;
use App\Role;
use App\User;
class UsersSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
//Membuat role admin
$adminRole = new Role();
$adminRole->name = "admin";
... |
<?php
/* themes/custom/clean/templates/page--front.html.twig */
class __TwigTemplate_31706cb6f990c3aa5ca4a78d8deed76601074b2d959acda35aad8eee991c0763 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->b... |
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: settings_users.php
| Author: Paul Beuk (muscapaul)
+-----------------------... |
@extends('layouts.app', ['activePage' => 'extended-forms', 'activeButton' => 'forms', 'title' => 'Light Bootstrap Dashboard PRO Laravel by Creative Tim & UPDIVISION', 'navName' => 'Extended Forms'])
@section('content')
<div class="content">
<div class="container-fluid">
<div class="container-fl... |
@extends('layouts.products')
<title>{{ config('app.name') }} - {{ __('menu.MENU_PRODUCT_ATTRIBUTES') }}</title>
@section('content')
<div class="container-fluid gedf-wrapper">
<div class="row">
<div class="col-md-3">
<div class="card">
<div class="card-title">
... |
<?php
include_once 'layout/header.php';
?>
<!-- Header Top END ==== -->
<!-- Content -->
<div class="page-content bg-white">
<!-- Main Slider -->
<?php
include_once 'layout/slider.php';
?>
<!-- Main Slider -->
<div class="content-block">
<!-- Popular Courses -->
... |
<!--PROPS-->
<!--STRINGS-->
<store-strings-setter
strings="{{ json_encode([
'key' => 'manage-delegation',
'values' => [
'loadErrorMessage' => trans('strings.view_all_error_load_message'),
'updateSucce... |
<?php
namespace mphamid\Gateway\Zarinpal;
use mphamid\Gateway\Exceptions\BankException;
class ZarinpalException extends BankException
{
public static $errors = array(
-1 => 'اطلاعات ارسال شده ناقص است.',
-2 => 'IP و یا مرچنت کد پذیرنده صحیح نیست',
-3 => 'رقم باید بالای 100 تومان باشد',
... |
<?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
require_once '../../../mainfile.php';
$root = XCube_Root::getSingleton();
$root->mController->executeForward($root->mContext->mModule->getAdminIndex()); |
<?php
class Candidates extends CI_Model {
function __construct(){
parent::__construct();
$this->load->database();
}
public function get_gender_types(){
return $this->db->query("SELECT `id`, `gender_type` FROM genders")->result();
}
public function get_states()
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class KeranjangBelanja extends Model
{
protected $table = "tb_keranjang_belanja";
protected $guarded = [];
public function relationTransaksi(){
return $this->belongsTo(\App\MasterDataBarang::class, 'id_barang', 'id');
}
} |
<?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... |
{!!Form::vertical_open()
->id('settings-setting-create')
->method('POST')
->files('true')
->action(trans_url('settings/mail'))!!}
<div class='row'>
<div class='col-md-12 col-sm-12'>
<fieldset>
... |
<?php
/**
* This file is part of Totara Learn
*
* Copyright (C) 2020 onwards Totara Learning Solutions LTD
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the Licens... |
<?php return unserialize('a:1:{i:0;O:30:"Doctrine\\ORM\\Mapping\\OneToMany":6:{s:8:"mappedBy";s:5:"event";s:12:"targetEntity";s:30:"Soccer\\TeamBundle\\Entity\\Match";s:7:"cascade";N;s:5:"fetch";s:4:"LAZY";s:13:"orphanRemoval";b:0;s:7:"indexBy";N;}}'); |
<?php
namespace App\Http\Controllers;
use App\Models\City;
use App\Models\Country;
use App\Models\State;
use App\Models\Suburb;
use Illuminate\Http\Request;
class RealEstateSalesController extends Controller
{
public function index() {
$data['countries'] = Country::get(["country_name", "id"]);
... |
<?php
namespace Elastica\Test\Query;
use Elastica\Document;
use Elastica\Query;
use Elastica\Test\Base as BaseTest;
class HighlightTest extends BaseTest
{
/**
* @group functional
*/
public function testHightlightSearch()
{
$index = $this->_createIndex();
$type = $index->getType('... |
<?php
header('Access-Control-Allow-Origin: http://app.ayr.mx/');
defined('BASEPATH') OR exit('No direct script access allowed');
class CtrlUsuario extends CI_Controller {
public function __construct() {
parent::__construct();
date_default_timezone_set('America/Mexico_City');
$this->load-... |
<?php
/*
* This file is part of Chrome PHP.
*
* (c) Soufiane Ghzal <sghzal@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HeadlessChromium\Exception\CommunicationException;
use HeadlessChromium\Exception\Co... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... |
<?php
/**
* @package Joomla.Administrator
* @subpackage com_categories
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* HTML View class for the Categori... |
<?php
/*
What's this vendor/autoload.php? This is used with composer.
You need to run `composer install`
*/
require_once "../../vendor/autoload.php";
$naturalLangObj = new \Kweaver\Watson\NaturalLanguageClassifier();
//Set your IBM Watson Bluemix Service Credentials
$naturalLangObj->setServiceCredentials("Y... |
<?php
/**
* Copyright (c) 2016 Filip Sedlacek <filsedla@gmail.com>
*/
namespace Filsedla\Hyperrow;
use Nette;
use Nette\Utils\Validators;
/**
*
*/
final class Extension extends Nette\DI\CompilerExtension
{
/** @var array Defaults loaded from NEON file */
protected $defaults;
public function loadCo... |
<?php
// uncomment this line for testing
//set_site_transient( 'update_plugins', null );
/**
* @package Wsal
* Allows plugins to use their own update API.
*
* @author Pippin Williamson
* @version 1.2
*/
class EDD_SL_Plugin_Updater
{
private $api_url = '';
private $api_data = array();
private $name ... |
<?php
namespace ElasticSearch\Result;
use Elastica\ResultSet;
abstract class ResultSetAware {
/** @var ResultSet */
private $resultSet;
/**
* @param ResultSet $resultSet
*/
public function __construct(ResultSet $resultSet) {
$this->resultSet = $resultSet;
}
/**
* @return ResultSet
*/
final protect... |
<?php declare(strict_types=1);
namespace Symplify\Statie\Tests\Renderable\Configuration;
use SplFileInfo;
use Symplify\Statie\Exception\Neon\InvalidNeonSyntaxException;
use Symplify\Statie\Renderable\Configuration\ConfigurationDecorator;
use Symplify\Statie\Renderable\File\FileFactory;
use Symplify\Statie\Tests\Abstr... |
<?php
namespace App\Libraries;
/**
* Summary.
* return Alert success|error|info message by switch case
* @version 2.0.0
* @author amirhosein hasani
* @return string JSON
*/
class Alert {
/**
* Summary.
* return Error messages
* @param int $Code
* @param bool $ShowCode TRUE|FALSE def... |
<?php
namespace backend\controllers;
use Yii;
use backend\models\CalendarioAcademico;
use backend\models\search\CalendarioAcademicoSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* CalendarioAcademicoController implements the CRUD actions for CalendarioAcademico mo... |
<?php
namespace ContainerNbGDcP6;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getCMRepositoryService extends A... |
<?php
use Illuminate\Database\Seeder;
use App\Model\User\User;
class AddressTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$customer = User::where('email', 'rizqon@kokon.com')->first();
$customer->address()->creat... |
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>rp_assets/css/calendar.css?v=2.1">
<script src="<?php echo base_url(); ?>rp_assets/js/calendar.js?v=2.0"></script>
<style type="text/css">
a {
text-decoration: none;
}
ul, ol, li {
list-style: none;
padding: 0;
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Expense;
use App\Models\ExpenseReport;
class ExpenseController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
... |
<?php
$version = '2.1'; // the $ projectnumber variable is automatically replaced by doxygen with the version number
$pagetitle = 'VideoMode.hpp Source File'; // the $ title variable is automatically replaced by doxygen with the page title
include('../header.php');
?>
<!-- Generated by Doxygen 1.8.2 -->
<... |
<?php
/**
* Custom template tags for this theme.
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package Akina
*/
if ( ! function_exists( 'akina_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function akina_posted_o... |
<?php
/**
* 易优CMS
* ============================================================================
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
* 网站地址: http://www.eyoucms.com
* ----------------------------------------------------------------------------
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
* ==============================... |
<?php
namespace OCPlatformBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* ImageRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ImageRepository extends EntityRepository
{
} |
<?php
namespace App\Http\Controllers;
use DB;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Otro;
use App\baiviet;
use App\khunhatro;
use App\sinhvien;
use App\taikhoan;
use Session;
use Hash;
class QLOTro extends Controller
{
//
public function DsOtro(Request $req){
$pageSi... |
<?php
namespace sbwms\Model\Inventory\Supplier;
use sbwms\Model\Inventory\Supplier\Supplier;
class SupplierEntityManager {
public function createEntity($data) {
if (!isset($data['_origin'])) exit('data source not set');
$supplier = null;
if ($data['_origin'] === 'user') {
$s... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Validator;
class FranchiseModelController extends Controller
{
//
public function index(){
return view('franchise.add');
}
public function create(Request $request){
$data = $request->all();
$... |
@extends('layouts.admin')
@section('title', 'Orders Report')
@section('content')
<div class="header bg-primary pb-6">
<div class="container-fluid">
<div class="header-body">
<div class="row align-items-center py-4">
<div class="col-lg-6 col-7">
<h6 class="h2... |
<?php
namespace App\Documents\Folders;
interface Folder
{
const TABLE = 'document_folders';
/**
* @return int
*/
public function id();
/**
* @return \string
*/
public function name();
/**
* @return \App\Accounts\Account
*/
public function account();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.