text
stringlengths
2
1.03M
@extends("base") @section('contenu') <p>Usine {{ get_class($factory) }}</p> <p>Concession {{ get_class($concession) }}</p> <table> <tr> <th>Liste Voiture</th> </tr> <?php foreach($concession->getVoitures() as $voiture){?> <tr> <td> <?php echo $voiture->getName() ?> <...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', function (Blueprint $table) { ...
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>アイテム登録表</title> </head> <body> <table border=1> <tr> <th>商品ID</th> <th>商品名</th> <th>値段</th> <th>在庫</th> <th>更新</th> <th>削除</th> </tr>...
<?php namespace admin\controllers; use services\User\RepoInterface as User; class UserController extends \BaseController { protected $user; protected $newpass = "123"; public function __construct(User $user){ $this->user = $user; } /** * Display a listing of the resource. * * @return Response */ publ...
<?php /* * This file is part of the Behat Gherkin. * (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\Gherkin\Node; /** * Represents Gherkin PyString argument. * * ...
<?php if(!file_exists("datastore.json")){ include "cronjob.php"; } $dataStore = json_decode(file_get_contents("datastore.json")); header("Location: " . $dataStore->url); die(); ?>
<?php use Illuminate\Support\Facades\Route; use App\Models\Buku; use App\Models\Santri; use App\Models\Pengurus; // panggil controller agar bisa digunakan pada route // controller dipanggil sesuai nama dan lokasi filenya use App\Http\Controllers\Dashboard\SantriController; use App\Http\Controllers\Dashboard\BukuContr...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class JenisProduk extends Model { public $table='jenis_produks'; protected $fillable = ['id_kategori', 'jenis', 'foto_jenis']; public function linreg() { return $this->hasMany('App\LinReg'); } }
<?php namespace App\Http\Livewire\Medecin; use App\Models\Medecin; use App\Models\Specialisation; use Livewire\Component; class IndexMedecinPage extends Component { public function render($id) { $specialisation = Specialisation::find($id); $medecin = Medecin::all(); return view('livew...
<!DOCTYPE html> <!-- This is a starter template page. Use this page to start your new project from scratch. This page gets rid of all links and provides the needed markup only. --> <html> @include('contact.htmlheader') <!-- BODY TAG OPTIONS: ================= Apply one or more of the following classes to get the desi...
<?php namespace common\models; use Yii; /** * This is the model class for table "gallery". * * @property int $id * @property int $user_id * @property int $gallery_type_id * * @property GalleryType $galleryType * @property Users $user * @property Images[] $images */ class Gallery extends \yii\db\ActiveRecor...
<?php namespace App\Models\Procesos; use App\Models\Concepto; use App\Models\Persona; use App\Models\Seguridad\Usuario; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\DB; class NotaCredito extends Model { use SoftDeletes; protected $table = '...
@extends('layouts.master') @section('title') {{ $event->name }} @endsection @section('styles') <link rel="stylesheet" href="{{ asset('assets/styles/page.css') }}" /> @endsection @section('content') <main> <div class="container"> <article> <section class="flex"> <div class="image"> <img src...
<div class="col-lg-12"> <div class="col-lg-2"> <img src="{{ url('img/fotos/<% result.foto %>') }}" class="img-responsive"><br> </div> <div class="col-lg-6"> <img src="{{ url('img/divider.png') }}" class="img-responsive"> </div> <div class="col-lg-4"> <div class="form-group"...
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; use Rupiah; class TransaksiResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($reque...
<?php namespace Admin\Controller; use Think\Controller; class GoodsController extends CommonController { protected $error = array(); public $Goods = ''; public function _initialize() { parent::_initialize(); $this->Goods = D('Goods'); } public function index() { $this->set...
<?php return [ // Limit the number of displayed toasts 'maxItems' => null, 'options' => [ 'closeButton' => true, 'closeClass' => 'toast-close-button', 'closeDuration' => 300, 'closeEasing' => 'swing', 'closeHtml' => '<button><i class="...
<?php namespace App\Http\Controllers; use App\Models\Ad; use App\Models\Plan; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; class AdsController extends Controller { public function __construct() { $this->middleware('auth'); ...
<?php session_start(); if (isset($_SESSION['id'])) { $id=$_SESSION['id']; include 'connection.php'; ?> <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes"> ...
<?php use yii\db\Migration; class m160827_212819_add_location_singapore_indonesia extends Migration { public function up() { $timestamp = time(); $this->execute("INSERT INTO country(country_code, country_default_name, created_at, updated_at) values('SG', 'Singapore', $timestamp , $timesta...
@extends('admin.layout') @section('content') <div class="vertical-box"> <div class="vertical-box-column width-200"> <div class="vertical-box"> <div class="wrapper" style="background:#D9DEE4;color:#000;font-size: 14px;"> @foreach ($menu as $value) ...
<?php use PHPUnit\Framework\TestCase; class NoTestCases extends TestCase { public function noTestCase() {} }
<?php return [ 'accepted' => ':Attribute harus diterima.', 'active_url' => ':Attribute bukan URL yang valid.', 'after' => ':Attribute harus berisi tanggal setelah :date.', 'after_or_equal' => ':Attribute harus berisi tanggal setelah atau sama dengan :date.', ...
<?php use yii\helpers\Html; use kartik\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\RestaurantCRUD */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Restaurants'); $this->params['breadcrumbs'][] = Yii::t('app', $this->title); ?> <div class="restaur...
<?php namespace App\Telegram; use Illuminate\Http\Response; use Telegram\Bot\Actions; use Telegram\Bot\Commands\Command; /** * Class StopCommand. */ class StopCommand extends Command { /** * @var string Command Name */ protected $name = 'stop'; /** * @var string Command Description ...
@extends('theme.default') @section('content') <!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Negocios</h1> <...
<?php /* * Created by PhpStorm. * User: DatDraggy * * MIT License * * Copyright (c) 2017 DatDraggy */ require_once('./TeamSpeak3/TeamSpeak3.php'); require_once('./config.php'); try { $ip = getIP(); $comboboxValues = ''; checkports($config["ports"]); foreach ($config["ports"] as $port) { $ts3 = TeamSp...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; class Reason extends Model { use HasFactory; const REASONS = [ 'Not PIP', 'Subsumed', 'Changed/Replaced', ...
<?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...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="{{url('assets/css/style.css')}}"> <link rel="stylesheet" type="text/css" href="{{url('assets/js/OwlCarousel2-2.3.4/dist/as...
<?php /** * ECTouch Open Source Project * ============================================================================ * Copyright (c) 2012-2014 http://ectouch.cn All rights reserved. * ---------------------------------------------------------------------------- * 文件名称:alipay_wap.php * --------------------------...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\WidgetText */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Widget Texts', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="widget-text-vie...
<?php namespace Npl\Brique\View\Components\Contact\Page; use Illuminate\View\Component; use Npl\Brique\ViewModel\Filter\FilterFactory; class Liste extends Component { public $liste; /** * Create a new component instance. * * @return void */ public function __construct( $liste) {...
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ namespace app\model\api; use app\model\User; // 不能非法包含或直接执行 if (!defined('IN_GINKGO')) { return 'Access denied'; } /*-------------用户模型-------------*/...
<?php /** * Get saved language files. */ $languageArray = GetDirContents("/usr/local/directadmin/plugins/rclone_backup/admin/elements/lang"); ?> <! -- Create settings form --> <div class="container-fluid"> <form class="form"> <! -- Language Options --> <div class="card"> ...
<?php namespace DCarbone\PHPFHIRGenerated\STU3\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: December 26th, 2019 15:43+0000 * * PHPFHIR Copyright: * * C...
<?php namespace App\Http\Controllers; // IMPORT use Illuminate\Http\Request; // MODEL use App\Province; use App\City; class areaApiController extends Controller { public function getCity() { $cities = City::where('province_id', request()->province_id)->get(); return response()->json(['status...
<?php /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | The first thing we will do is create a new Acorn application instance | which serves as the "glue" for all the components of Lara...
<?php declare(strict_types=1); /** * This file has been auto generated * Do not change it. */ namespace Commercetools\Import\Models\Errors; use Commercetools\Base\DateTimeImmutableCollection; use Commercetools\Base\JsonObject; use Commercetools\Base\JsonObjectModel; use Commercetools\Base\MapperFactory; use stdCl...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use kartik\typeahead\TypeaheadBasic; use kartik\typeahead\Typeahead; use kartik\date\DatePicker; use yii\bootstrap\NavBar; use yii\bootstrap\Nav; use yii\helpers\Url; use kartik\tabs\TabsX; use backend\models\Peso; use backend\models\RazaAnimal; use wbraganca\dyn...
<?php namespace Vda\Datasource\Relational\Driver; interface ISqlDialect { public function quote($literal, int $type); public function quoteIdentifier(string $identifier); public function patternMatchOperator(bool $isCaseSensitive, bool $isNegative); public function jsonGetOperator(string $path); pu...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAppFeaturesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('app_feature...
@extends('backpack::blank') @section('header') <section class="container-fluid"> <h1> @lang('Student details for') {{ $student->name }} </h1> </section> @endsection @section('content') <div id="app"> <div class="row"> @if ($student->getMedia('profile-picture')->count() > 0) <div class="col...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Certificate; use App\Subscription; use App\User; use App\Http\Requests\UserRequest; class CertificateController extends Controller { public $certificate; public $Subscription; public $user; public function __construct(Certificat...
<?php var_dump(SEEK_SET); var_dump(SEEK_CUR); var_dump(SEEK_END);
<!DOCTYPE html> <html> <head> <title>Tabuda</title> </head> <body> <center> <h3>Tabuada</h3> <form action="tabuada.php" method="post"> Escolha a tabuada: <input type="number" name="numero" min="1"> <input type="submit" name="calcular" value="Calcular"> </form> <?php if (isset($_POST['calcular'])) { ...
<?php return [ /* |-------------------------------------------------------------------------- | Connection |-------------------------------------------------------------------------- | | The connection to use for authentication. | | You must specify connections in your `config/adldap.p...
@extends('layouts.master') @section('page-header') <h2 class="h4 font-weight-bold"> {{ __('Profile') }} </h2> @endsection @section('content') <div> @if (Laravel\Fortify\Features::canUpdateProfileInformation()) @livewire('profile.update-profile-information-form') <x-...
<style> .md-scroll-mask{ display:none!important; } </style> <div class="header-container" ui-view="header" id="header" ng-controller="HeaderControllerStatic"> <div id="primaryHeader" class="md-whiteframe-2dp"> <md-toolbar style='height: 64px; background-color: rgb(33,33,33);'> <div class="desktop...
<body class="hold-transition sidebar-mini"> <div class="wrapper"> <div class="content-wrapper"> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>About</h1> </div> <div class="col-sm-6"> <ol class="breadcrumb f...
<?php /** * Global bootstrap file. */ // Security settings define("APP_IS_COMMAND_LINE", (PHP_SAPI == "cli")); define("APP_IS_SECURE", (!APP_IS_COMMAND_LINE && (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")) ? true : false); if (!defined('APP_TESTING_MODE')) { define('APP_TESTING_MODE', false); } ...
<?php App::uses('Judgment', 'RequestManagment.Model'); /** * Judgment Test Case * */ class JudgmentTest extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array( 'plugin.request_managment.judgment' ); /** * setUp method * * @return void */ public function setUp() { parent::s...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Sertifikat extends Model { protected $fillable = ['judul','siswa_id']; public function siswa() { return $this->belongsTo(Siswa::class); } }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePermissionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('permissions...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&displ...
<div class="col-4"> <ul class="list-group"> <li class="list-group-item"> <a href="#ayah" class="btn-kelengkapan">Data Ayah</a> </li> <li class="list-group-item"> <a href="#ibu" class="btn-kelengkapan">Data Ibu</a> </li> <li class="list-group-item"> <a href="#istri" class="btn-kelengkapan">D...
<?php namespace Core\Privilegio\Infraestructura\AdapterBridge; use Core\Privilegio\Application\UseCases\CreateUseCase; use Core\Privilegio\Application\UseCases\ListPrivilegesByRolUseCase; use Core\Privilegio\Infraestructura\DataBase\PrivilegiosRepositoryImpl; use Illuminate\Http\Request; class ListPrivilegesByRolA...
<?php namespace Cane\Permissions; use Cane\Models\Drive\Drive; class DrivePermission extends Permission { /** * Check if user can see this drive. * Later we want to add feature to make this drive public or not but for now just check if he is the same user. * * @param Drive $drive * @retu...
<?php namespace App\Http\Controllers; use App\Models\Album; use Illuminate\Http\Request; use League\CommonMark\Extension\CommonMark\Parser\Block\ListItemParser; class AlbumController extends Controller { public function albums() { $albums=Album::all(); // trae todas los albums de la tabla alb...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\modules\admin\models\Item */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Items', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="item-view"> ...
<form id="editids" name="editids"> <div class="modal-body"> <div class="clearfix"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <input class="form-control" type="" name="" placeholder="search here" id="search_filter"> </div><...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDiskonPemasokTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tb_diskon...
<?php namespace streaming; use log\KLogger as KLogger; /** * MJPEG stream reader. * * @author Bartosz Firyn (SarXos) */ class MJPEGStreamer { private static $BOUNDARY = 'mjpeg-frame'; private $log = null; private $initialized = false; private $running = true; private $buffer = array(); private $name...
<?php $this->layout('layout/base', ['user' => $user]); ?> <br> <div class="row"> <div class="col s12"> <div class="card"> <div class="card-image"> <img class="materialboxed" src="http://placehold.it/550x250"/> <span class="card-title">Title de File</span> ...
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php', 'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php', 'App\\Http\\Controllers\\Aut...
<?php if(empty($_SESSION["UID"]) && empty($_SESSION["FNAME"]) && empty($_SESSION["EMAIL"]) && empty($_SESSION["LEVEL"]) && $_SESSION["SNAME"] !== $_SERVER['SERVER_NAME']){ echo "Forbidden page"; exit(); } if(empty($_SESSION["token"])){ $_SESSION["token"] = base64_encode(openssl_random_pseudo_bytes(32)); } ?> <se...
<div role="tabpanel" id="cSalida" class="tab-pane active"> <div class="panel-body"> <div class="ibox-content"> <table class="footable table table-stripped toggle-arrow-tiny"> <thead> <tr> <th data-toggle="true">Código</th> <...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Lab; use App\Models\TestMenu; use Illuminate\Support\Facades\Auth; class LabsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function ...
<?php namespace DOMAssembly\HTML\Attr { use DOMAssembly\HTML\Attr; use DOMAssembly\HTML\UntranslatableNodeTrait; class WrapAttr extends Attr { use UntranslatableNodeTrait; const NAME = 'wrap', VALUE_SOFT = 'soft', VALUE_HARD = 'hard', ...
<?php namespace Dvsa\Olcs\Api\Service\Permits\Bilateral\Internal; use Dvsa\Olcs\Api\Entity\Generic\Answer; use Dvsa\Olcs\Api\Entity\Permits\IrhpPermitApplication; use Dvsa\Olcs\Api\Service\Permits\Bilateral\Common\StandardAndCabotageUpdater; use Dvsa\Olcs\Api\Service\Qa\QaContext; class StandardAndCabotageQuestionHa...
<?php /* @Twig/Exception/logs.html.twig */ class __TwigTemplate_8a960cc27a87c650e25fdf9be0b11e5fd2de438811cf8d30aa3e30f856045bee extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>Olpres SMK 11 Maret</title>...
<?php require_once "class_orders.php";//подключение класса Заказы require_once "class_order_switchers.php";//подключение класса Заказанные переключатели $order = new ClassOrders();//создание объекта класса ClassOrders $orderswitcher = new ClassOrderSwitchers();//создание объекта класса ClassOrderSwitchers if(!isset(...
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"> {{ __('invoice.items') }} </h3> </div> <table class="table"> <thead> <tr> <th>{{ __('app.table_no') }}</th> <th>{{ __('app.description') }}</...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace App\Http\Controllers; use App\Models\Artwork; class ArtworkController extends Controller { public function index() { return view('artwork.index')->with([ 'artwork' => Artwork::visible()->orderBy('order', 'desc')->get(), ]); } public function show(Artwork $...
<!--{template header}--> <SCRIPT src="{SITE_URL}static/js/admin.js" type="text/javascript"></SCRIPT> <SCRIPT src="{SITE_URL}static/js/calendar.js" type="text/javascript"></SCRIPT> <div id="append"> </div> <div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;"> <div style="float:left;"><a href="index.php...
<?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 Version20200624201558 extends AbstractMigration { public function getDescription() : string {...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCustomerTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('customer', fun...
<?php /** * Created by PhpStorm. * User: SAURON * Date: 3/23/2018 * Time: 11:51 PM */ namespace app\model_extended; use app\components\MailchimpComponent; use app\helpers\APP_UTILS; use app\models\MailQueue; use app\models\Users; class MailList extends MailQueue { const CUST_ALL = 'c87f26c5f9'; const ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AlterAgendas extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('agendas', function (Bl...
<?php namespace Payum\Core\Tests\Bridge\PlainPhp\Security; use Payum\Core\Bridge\PlainPhp\Security\TokenFactory; use Payum\Core\Model\Identity; use Payum\Core\Model\Token; use Payum\Core\Registry\StorageRegistryInterface; use Payum\Core\Storage\StorageInterface; class TokenFactoryTest extends \PHPUnit_Framework_TestC...
@extends('admin.master') @section('title', "Video Create | JU Press Club") @section('pageTitle') <h4 class="pull-left page-title text-uppercase">Video Gallery Create</h4> <ol class="breadcrumb pull-right"> <li><a href="{{route('admin.dashboard')}}">Dashboard</a></li> <li><a href="{{route('admin....
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an even...
<main class="main"> <!-- Breadcrumb--> <ol class="breadcrumb"> <li class="breadcrumb-item">Dashboard </li> <li class="breadcrumb-item">Pengaturan </li> <li class="breadcrumb-item active">Kontak </li> </ol> <div class="container-fluid"> <div class="animated fadeIn"> <div class="...
<?php namespace SoliDry\Documentation; use SoliDry\Extension\JSONApiInterface; use SoliDry\Types\DefaultInterface; use SoliDry\Types\DocumentationInterface; use SoliDry\Types\PhpInterface; trait BulksDoc { /** * Sets OAS documentation for a bulk create method */ private function setCreateBulk(): ...
<?php declare(strict_types=1); namespace Sourceability\Instrumentation\Test\Bundle\DependencyInjection; use PHPUnit\Framework\TestCase; use Sourceability\Instrumentation\Bundle\DependencyInjection\Configuration; use Symfony\Component\Config\Definition\Processor; /** * @covers \Configuration * * @internal */ fin...
<?php class ContactModel extends Model {}
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php declare(strict_types=1); namespace Malinoff\PlastekBundle\Services\Request; interface RequestInterface { public function getAction(): string; public function getMethod(): string; public function getQuery(): array; public function getBody(): array; /** * @return mixed */ pu...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the fr...
<?php namespace App\Repository; use App\Entity\TradingParameters; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method TradingParameters|null find($id, $lockMode = null, $lockVersion = null) * @method TradingParameters|null findOneBy(array $...
<!-- Sidebar --> <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar"> <!-- Sidebar - Brand --> <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html"> <div class="sidebar-brand-icon rotate-n-15"> <i class="fab ...
<?php declare(strict_types=1); namespace Spiral\Testing\Traits; use Spiral\Boot\Environment; use Spiral\Boot\EnvironmentInterface; trait InteractsWithCore { public function assertBootloaderRegistered(string $class): void { $this->assertContains( $class, $this->getRegisteredBo...
<?php use Phalcon\Forms\Form, Phalcon\Forms\FileUpload, Phalcon\Forms\TextEditor, Phalcon\Forms\Element\Text, Phalcon\Forms\Element\Textarea, Phalcon\Forms\Element\Select, Phalcon\Forms\Element\Radio, Phalcon\Forms\Element\Password; use Phalcon\Validation\Validator\PresenceOf, Phalcon\Vali...
<?php include($_SERVER['DOCUMENT_ROOT'].'inc/dbs/ref_stats_config.php'); include('header.php'); include('../inc/functions.php'); ?> <?php $id = (int) $_GET['id']; mysqli_query($link, "DELETE FROM `ref_stats` WHERE `id` = '$id' ") ; $result = (mysqli_affected_rows($link))? True : False; if ($result == True){ head...
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; // из https://snipp.ru/php/more-mb-string if (!function_exists('mb_ucfirst')) { function mb_ucfirst($str, $enc = 'utf-8') { return mb_strtoupper(mb_substr($str, 0, 1, $enc), $enc) . mb_substr($str, 1, mb_strlen($...
<?php namespace Drupal\purge_drush\Plugin\Purge\Processor; use Drupal\purge\Plugin\Purge\Processor\ProcessorBase; use Drupal\purge\Plugin\Purge\Processor\ProcessorInterface; /** * Processor for the 'drush p:queue-work' command. * * @PurgeProcessor( * id = "drush_purge_queue_work", * label = @Translation("Dr...
@extends('layouts.css') @section('content') <div class="container"> <div class="row" style="margin-top: 30px;"> <div class="col-2"> <div class="list-group" id="list-tab" role="tablist"> <a class="list-group-item list-group-item-action active" id="list-home-list" data-toggle="list" href="#list-home" rol...
<?php namespace Home\Model; use Think\Model; class ArticlesModel extends Model { /** * 文章列表 * @param array|int $cids 分类ID数组 * @param int $p 当前页码 * @return array 查询结果 */ public function getList($cids=0,$p=0) { $field = 'category_id,id,name,desc,add_time,author,content,keywords,thumb,source,url,click'; ...