text
stringlengths
2
1.03M
--TEST-- ldap_explode_dn() test --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php /* Explode with attributes */ var_dump(ldap_explode_dn("cn=bob,dc=example,dc=com", 0)); /* Explode with attributes */ var_dump(ldap_explode_dn("cn=bob,ou=users,dc=example,dc=com", 0)); /* Explode without attributes */ var_...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php exit();?>{"corp_access_token":{"corp_access_token":"610d7d5f43e73765a62f04cc55905531","expire_time":1521875562,"create_time":1521868562}}
<?php /** * CurrencyRepository.php * Copyright (C) 2016 thegrumpydictator@gmail.com * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ declare(strict_types = 1); namespace FireflyIII\Repositories\Currency; use FireflyIII\Models\Prefere...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Badge extends Model { protected $fillable=[ 'title','description','icon','qty','credit','status' ]; public function users() { return $this->belongsToMany(User::class, 'user_badges'); } }
<?php session_start(); $un = $_POST["username"]; $pw = $_POST["password"]; $conn = new PDO("mysql:host=localhost;dbname=ephp011;", "ephp011","caemahah"); $results = $conn->query("select * from users where username = '$un' AND password = '$pw' "); $row = $results->fetch(); if ($row == false) { // The wrong passwor...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Post_model extends CI_Model { public $vars; private $session_level; private $session_key; private $_table = 't_post'; private $_column_order = array(null, 't_post.title', 't_category.seotitle', 't_post.active'); private $_column_search ...
<?php namespace HL7\FHIR\STU3\PHPFHIRTests\FHIRElement; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: November 18th, 2019 08:27+0000 * * PHPFHIR Copyright: * * Copyri...
<?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\Component\Product\Factory; use Sylius\Component\Resource\Factory\FactoryInterface; u...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Year extends Model { use HasFactory; protected $guarded = []; function session() { return $this->belongsTo(Session::class); } }
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddStudentIdCourseOfferingStudentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::ta...
@extends('layouts.app') @section('content') <div class="row"> <div class="col-md-12 " > <div class="panel-heading"> <h1>ລາຍການຂາຍ</h1> </div> <div class="panel-body"> <div class="pull-left" style="width: 90%;"> <form a...
@extends('plantilla') @section('titulo') Proyectos | Editar un proyecto @endsection @section('content') <div> <h1 class="texto-hc">Editando un proyecto</h1> <br /> <form method="POST" action="{{route('proyectos.update', $proyecto->id)}}"> @method('PATCH') <!-- Crea un campo oculto con el m...
<?php declare(strict_types=1); namespace LaravelFreelancerNL\Aranguent\Testing; use Illuminate\Foundation\Testing\RefreshDatabase as IlluminateRefreshDatabase; trait RefreshDatabase { use HandlesTestingTransactions; use IlluminateRefreshDatabase; /** * Begin a database transaction on the testing d...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePrivilegesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('privileges',...
<?php namespace App\Console\Commands; use App\Jobs\DeleteMultiloginItem; use App\MultiloginTask; use App\Task; use Illuminate\Console\Command; use League\Flysystem\Exception; class DeleteMultiloginTasks extends Command { /** * The name and signature of the console command. * * @var string */ ...
<?php namespace App\Http\Controllers; use App\Http\Requests\CreateCursosRequest; use App\Http\Requests\UpdateCursosRequest; use App\Repositories\CursosRepository; use App\Http\Controllers\AppBaseController; use Illuminate\Http\Request; use Laracasts\Flash\Flash; use Prettus\Repository\Criteria\RequestCriteria; use Il...
<?php /** * Created by PhpStorm. * User: Master * Date: 07/01/2018 * Time: 08:09 */ use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\models\User */ $this->title = 'Modification du mot de passe de l\'utilisateur: ' . $model->fullName; $this->params['breadcrumbs'][] = ['label' => 'Utilis...
<div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid "> <div class="row mb-2"> <div class="col-sm-6"> <h2 class="m-0">Professor's Record</h2> </div><!-- /.col --> <div class="col-sm-6"...
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | r...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SubCategory extends Model { use HasFactory; protected $guarded = []; public function category() { return $this->belongsTo(Category::class, 'categories_id'); } }
@extends('layouts.app') @section('content') <section class="content-header"> <h1> Role </h1> </section> <div class="content"> @include('adminlte-templates::common.errors') <div class="box box-primary"> <div class="box-body"> <div class...
{{--<div class="row">--}} {{--<nav class="navbar navbar-expand-lg navbar-dark bg-primary col-12 mb-3">--}} {{--<a class="navbar-brand" href="{{ url('/') }}">{{ config('app.name')}}</a>--}} {{--<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" a...
@extends('layouts.backend.index') @section('content') <div class="row pt-2 pb-2"> <div class="col-sm-9"> <h4 class="page-title">Bootstrap Elements</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="javaScript:void();">Rocker</a></li> <li class="breadcrumb-item"><a hre...
@if(\Illuminate\Support\Facades\Session::has("Cart") != null) <div class="select-items"> <table> <tbody> @foreach(\Illuminate\Support\Facades\Session::get('Cart')->products as $item) <tr> <td class="si-pic"><img src="assets/img/products/{{$item['productInfo']->image}}" alt=""></...
<?php namespace Hyyppa\Toxx\Contracts; interface ToxxInterface { /** * @param string $filename * @param string|null $table * * @return ToxxInterface */ public function tdf(string $filename, string $table = null) : ToxxInterface; /** * @param string $table * ...
<?php echo "FOR LOOP"; for ($i=0; $i <20 ; $i++) { echo " $i &nbsp"; # code... } echo "</br>"; echo "WHILE LOOP &nbsp"; $a=0; while ($a <20) { echo "$a &nbsp"; $a++; # code... } echo "</br>"; echo "DO WHILE LOOP &nbsp"; $b=0; do { echo "$b &nbsp"; $b++; # code... } while ( $b < 20);
<div class="footer__top gray-bg p-tb-100 m-t-100"> <div class="container"> <div class="row"> <div class="col-xl-4 col-lg-6 col-12"> <div class="footer__about"> <div class="footer__logo"> <a href="index.html" class="footer__logo-li...
@extends('layouts.app') @section('content') {{-- <h1>{{ $receta }}</h1> --}} <article class="contenido-receta bg-white p-5 shadow"> <h1 class="text-center mb-4">{{ $receta->titulo }}</h1> <div class="imagen-receta"> <img src="/storage/{{ $receta->imagen }}" class="w-100"> ...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use App\myclass\Slug; class PackageSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $slug = new Slug(); $fake = Faker\Factory::create(); $l...
<?php /** * This file is part of the PHP Rebilly API package. * * (c) 2015 Rebilly SRL * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ namespace Rebilly\Entities; use DomainException; use Rebilly\Rest\Entity; /** * Class Pay...
<?php namespace Psalm\Examples\Template; use InvalidArgumentException; use PhpParser; use Psalm; use Psalm\Checker\CommentChecker; use Psalm\Codebase; use Psalm\DocComment; use Psalm\Progress\Progress; use Psalm\Storage\FileStorage; class TemplateScanner extends Psalm\Internal\Scanner\FileScanner { const VIEW_CLA...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class TugasPraktikum3Controller extends Controller { public function index(Request $request) { $transaksi = Transaksi::select('pelanggan.nama as nama_pelangagan','barang.nama','barang.harga') ->join('pel...
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer\Host; use Deployer\Configuration\Configuration; use Deployer\Deployer; use Deployer\Exception\C...
<?php namespace frontend\controllers; use Yii; use common\models\LoginForm; // use common\models\Layout; use frontend\models\PasswordResetRequestForm; use frontend\models\ResetPasswordForm; use frontend\models\SignupForm; use frontend\models\ContactForm; use yii\base\InvalidParamException; use yii\web\BadRequestHttpEx...
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\Test\Trading\Types; use DTS\eBaySDK\Trading\Types\AddSellingManagerProductRequestType; cl...
<?php function test() { var_dump(self::FOO); } ?>
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\InventorySales\Model\ReturnProcessor; use Magento\InventorySalesApi\Api\Data\ItemToSellInterfaceFactory; use Magento\InventorySalesApi\Api\Data\SalesEventInterface; use Ma...
@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">{{ __('Login') }}</div> <div class="card-body"> <form method="POST...
<?php namespace sisVentas\Http\Controllers; use Illuminate\Http\Request; use sisVentas\Http\Requests; use sisVentas\Persona; use Illuminate\Support\Facades\Redirect; use sisVentas\Http\Requests\PersonaFormRequest; use DB; class ClienteController extends Controller { public function __construct() { $this...
@extends('layouts.master') @section('css') <link rel="stylesheet" href="{{URL::asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')}}"> <link rel="stylesheet" href="{{URL::asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')}}"> @endsection @section('principal') @include('encues...
<?php /** * Footer */ ?> <footer class="footer"> <p class="footer__copyright">&copy; Copyright <?php echo date("Y") ?> Dr. Mindy Buoncristiani</p> </footer> </div><!-- .content --> <?php wp_footer(); ?> </body> </html>
<!DOCTYPE html> <html> <head> @include('includes.admin.header') </head> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> @include('includes.admin.main-header') @include('includes.admin.main-sidebar') <div class="content-wrapper"> @include('includes.admin.error') ...
<?php namespace Tests; use Dant89\SmiteApiClient\Team\TeamClient; use Tests\Helper\ClientTestCase; /** * Class TeamClientTest * @package Tests */ class TeamClientTest extends ClientTestCase { /** * @var TeamClient */ protected $teamClient; public function setUp(): void { parent:...
<?php declare(strict_types=1); namespace Doctrine\Migrations\Tests\Provider; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\AbstractSchemaManager; use Doctrine\DBAL\Schema\SchemaConfig; use Doctrine\Migrations\Provider\EmptySchemaProvider; use Doctrine\Migrations\Tests\MigrationTestCase; use ...
<?php Route::group( ['middleware' => 'web', 'prefix' => 'users', 'namespace' => 'IA\Laravel\Modules\UserManagement\Http\Controllers'], function() { //Route::model( 'users', 'IA\Laravel\Modules\UserManagement\Entity\User'); Route::resource( 'users', 'UsersController', [ 'as' => 'admin.users'] ); //Route::...
<script language="JavaScript" type="text/javascript"> <!-- function csv_export(){ document.GUI.go.value = 'jagdkatastereditor_Eigentuemer_Listen_csv'; document.GUI.submit(); } --> </script> <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="<?php echo $bgcolor; ?>"> <tr> <td align="right...
<?php declare(strict_types=1); namespace Pggns\MidocoApi\Order\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for AgencySettlementBookingSetItemPriceResponse StructType * @subpackage Structs */ class AgencySettlementBookingSetItemPriceResponse exte...
<?php require_once '../lib/Repository.php'; /** * Das UserRepository ist zuständig für alle Zugriffe auf die Tabelle "user". * * Die Ausführliche Dokumentation zu Repositories findest du in der Repository Klasse. */ class QuizRepository extends Repository { /** * Diese Variable wird von der Klasse Repos...
<?php namespace App\Observers; use App\Jobs\CalculateUsedDiskSpace; use App\Jobs\GenerateImageThumbnail; use App\Models\Image; use Illuminate\Support\Facades\Bus; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; class ImageObserver { /** * Handle the Image "created" event. ...
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Req...
<?php namespace App\Http\Controllers\Admin; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; class AdminController extends Controller { public function main() { return redirect(route('orders-admin')); } public functi...
<div class="content-wrapper"> <section class="content-header" style="background: #f2f2f2;padding-bottom: 10px"> <h1>Profit / Loss Report</h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="box"> <div class="box-body"> <...
@extends('layouts.start') @section('title', 'About Us') @section('content') <section class="about-us-area section-padding"> <div class="container"> <div class="row"> <div class="col-lg-6"> <h2 class="section-title">About us</h2> <div class=...
<?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\Security\Core\Authentication; use Symfony\Component\S...
<?php /** * This file is part of Vegas package * * @author Arkadiusz Ostrycharz <aostrycharz@amsterdam-standard.pl> * @copyright Amsterdam Standard Sp. Z o.o. * @homepage http://vegas-cmf.github.io * * For the full copyright and license information, please view the LICENSE * file that was distributed with this ...
<?php namespace App\Providers; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Gate; use Laravel\Passport\Passport; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array ...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; use Spatie\Permission\Traits\HasPermissions; use Spatie\P...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Shafiq * Description: rentals model class */ class Listings_model extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); } public function getusers() {...
<?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 RectorPrefix20210923\Symfony\Component\DependencyInjection\Compiler; use...
@extends('layouts.default') @section('user') <div class="content-wrapper p-3"> <div class="row"> <div class="col-md-12"> <div class="col-lg-12 col-md-8 col-sm-8 float-right"> <div class="card height-equal"> <div class="card-header bg-green p-3"> ...
<?php /** * 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 required by applicable law or agreed to in writing, software ...
--TEST-- PDO Common: Bug #47769 (Strange extends PDO) --SKIPIF-- <?php if (!extension_loaded("pdo_sqlite")) die("skip: PDO_SQLite not available"); ?> --FILE-- <?php class test extends PDO { protected function isProtected() { echo "this is a protected method.\n"; } private function isPrivate() { echo "this is a...
<aside class="main-sidebar sidebar-dark-primary elevation-4"> <!-- Brand Logo --> <a href="index3.html" class="brand-link"> <img src="{{ asset('template/admin/dist/img/AdminLTELogo.png') }}" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"> <span class="brand-text f...
<?php namespace inklabs\kommerce\Action\Product; use inklabs\kommerce\Lib\Command\CommandInterface; use inklabs\kommerce\Lib\Uuid; use inklabs\kommerce\Lib\UuidInterface; final class SetDefaultImageForProductCommand implements CommandInterface { /** @var UuidInterface */ private $productId; /** @var Uuid...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php /* Unsafe sample input : Get a serialize string in POST and unserialize it Uses a magic_quotes_filter via filter_var function construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and ...
<?php include 'e_header.php'; ?> <?php switch($error_data[0]){ case 8: case 1024: $error_type = "Notice"; break; case 2: case 512: $error_type = "Warning"; break; case 1: case 256: $error_type = "Error"; default: $error_type = "Error"; } ?> <div class="container border py-5"> <div class="card bo...
<?php declare(strict_types=1); namespace Lcobucci\Kafka\Protocol\Type; use Lcobucci\Kafka\Protocol\Buffer; use Lcobucci\Kafka\Protocol\Type; /** * Represents a raw sequence of bytes or null. * * For non-null values, first the length N is given as an integer between -2^31 and 2^31-1 inclusive, then N bytes * foll...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class CartController extends Controller { public function addToCartGuest(Request $request,$id) { d } }
<?php /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator class. Some of these rules have multip...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class TipoSangre extends Model { use HasFactory; }
<?php declare(strict_types=1); /* * This file is part of the xezilaires project. * * (c) Dalibor Karlović <dalibor@flexolabs.io> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Xezilaires\Annotation; /** * @Annotation */ class Opt...
<?php use OcTest\Modules\AbstractModuleTest; class GeoCachesModifiedEntityTest extends AbstractModuleTest { public function testEntity(): void { $entity = new GeoCachesModifiedEntity(); self::assertTrue($entity->isNew()); $entity->cacheId = mt_rand(0, 100); $entity->name = md5(...
<?php namespace App\Controllers; use App\Models\UserModel; class Auth extends BaseController { protected $userModel; public function __construct() { $this->userModel = new UserModel(); } public function index() { $data = [ 'title' => 'Login Page' ]; ...
/** no direct access **/ defined('MECEXEC') or die(); /** * tFPDF (based on FPDF 1.7) * * Version: 1.24 * Date: 2011-09-24 * Author: Ian Back <ianb@bpm1.com> * License: LGPL */ define('tFPDF_VERSION','1.24'); class tFPDF { var $unifontSubset; var $page; // current page number var $n...
@extends('main') @section('title', '| Create New Post') @section('stylesheets') {!! Html::style('css/parsley.css') !!} {{--{!! Html::style('css/select2.min.css') !!}--}} <script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script> <script>tinymce.init({ selector:'textarea', plugins:...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddForeignKeysToSubProjectTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('sub_project', function(Bluepr...
<style> h1 { font-size:2em; } h2 { margin: 0; margin-bottom: .8em; background-color: #BDC4E1; padding: 0.5em; border-radius: 4px; border: 1px solid #4F5B93; box-shadow: 0 0 2px rgba(0,0,0,.5); } h2:hover { background-color: hsla(228, 37%, ...
<!--esto de aqui es la card de la imagen, lo tengo disponible en includes para poder usarlo siempre que tenga que listar publicaciones--> <div class="card pub_image"> <div class="card-header"> <!--MOSTRAR EL AVATAR DEL USUARIO--> @if($image->user->image) <!--si el usuario tiene foto de perfil mues...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddSeriesNameColumnToBooksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('boo...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOrderPlateTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('order_plate'...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddForiegnIdToOrderDetails extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('order_de...
<?php declare(strict_types=1); namespace spec\PhpSpec\Wrapper\Subject\Expectation; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use PhpSpec\Wrapper\Subject\Expectation\Expectation; use PhpSpec\Loader\Node\ExampleNode; use PhpSpec\Matcher\Matcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface;...
<?php interface DatabaseOperations { // read all public function fetchAll(); // read one public function fetchBy($id); // update/change public function updateById($id, $field, $newValue); // create new public function create($args); // delete existing public function deleteById($id); }
<div class="sidebar-sticky"> <ul class="nav flex-column"> <li class="nav-item"> <a class="nav-link {{ Request::is('/') ? 'active' : '' }}" href="{{ route('home') }}"> <span data-feather="home"></span> {{ __('app.Home') }} </a> </li> <li class="nav-item...
<?php namespace App\Http\Controllers\Admin\Frames; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Frame; use App\Size; use App\Activity; use App\User; use Illuminate\Validation\Rule; class FramesController extends Controller { /** * Display a listing of the resource. * ...
<?php declare(strict_types=1); namespace App\Auth\Test\Unit\Entity\User\User\ChangeEmail; use App\Auth\Entity\User\Email; use App\Auth\Entity\User\Token; use App\Auth\Test\Builder\UserBuilder; use DateTimeImmutable; use PHPUnit\Framework\TestCase; use Ramsey\Uuid\Uuid; /** * @covers User */ class RequestTest exte...
<?php namespace ContainerDxyFfGq; 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 getLoaderInterfaceService extend...
<?php return [ 'props' => [ /** * The placeholder text if none have been selected yet */ 'empty' => function ($empty = null) { return I18n::translate($empty, $empty); }, /** * Image settings for each item */ 'image' => functi...
<?php namespace App\Http\Controllers; use App\Order_detail; use Illuminate\Http\Request; class OrderDetailController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('layouts.order_deta...
<h3> <i class="fa fa-angle-right"></i> Manage news </h3> <div class="col-lg-12 main-chart"> <?php $msg = isset($_GET['msg']) ? $_GET['msg'] : null; if ($msg) { echo ' <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserAuthTokensTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_aut...
@extends('layouts.backend-main') @section('title','Add Instructor') @section('title') Gym Dashboard @stop @section('user-name') {{get_auth_user_full_name()}} @stop @section('content') <div id="page-title"> <h2 class="title-hero">ADD Instructor</h2> <p>Please fill in all the information a...
<?php /** * Third party service configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ ret...
<?php namespace App\Http\Controllers\Api\V1; use App\Product; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class ProductsController extends Controller { /** * Display a listing of the resource. * * @return Product[] */ public function index() { return Prod...
@extends('layouts.dataentry.dataentry',['title'=>'Recent Sales Application','folder'=>'recent_sales']) @section('content') <div class="container"> <div class="row"> <!-- Horizontal Form --> <div class="box box-success"> <div class="box-header with-border"> <h3 class="box...
<?php $entries = array( array('621019136','621150207','DE'), array('621150208','621215743','GR'), array('621215744','621281279','PL'), array('621281280','621314047','PS'), array('621314048','621318143','BA'), array('621318144','621322239','RU'), array('621322240','621330431','FR'), array('621330432','621346815','PL'), ...
<?php /** * @package Joomla.Plugin * @subpackage Fields.User * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { retu...