text
stringlengths
2
1.03M
<div class="container col-md-12"> <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand">PowerVial</a> </div> <ul class="nav navbar-nav"> <li @yield('active_1')><a href="/articulos">Inventario</a></li> ...
<?php declare(strict_types=1); /* * This file is part of the Yasumi package. * * Copyright (c) 2015 - 2022 AzuyaLabs * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Sacha Telgenhof <me at sachatelgenhof dot com> */ nam...
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * EducationCourse File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @...
<?php namespace app\admin\controller; use app\common\controller\Backend; /** * 云智慧管理 * * @icon fa fa-circle-o */ class CloudIntelligence extends Backend { /** * Intelligence模型对象 * @var \app\admin\model\cloud\Intelligence */ protected $model = null; public function _initialize() ...
<script type="text/javascript"> <?php $alert = $this->session->flashdata('success'); if(!empty($alert)){ ?> toastr.success('<?php echo $alert ?>') <?php } $alertDel = $this->session->flashdata('delete'); if(!empty($alertDel)){ ?> toastr.error('<?php echo $alertDel ...
<?php /** * */ namespace Admin\Logic; use Think\Model\RelationModel; /** * 分类逻辑定义 * Class CatsLogic * @package Home\Logic */ class GoodsLogic extends RelationModel { /** * 获得指定分类下的子分类的数组 * @access public * @param int $cat_id 分类的ID * @param int $selected 当前选中分类的ID...
@props(['heading']) <section class="py-8 max-w-4xl mx-auto"> <h1 class="text-lg font-bold mb-8 pb-2 border-b"> {{ $heading }} </h1> <div class="flex"> <aside class="w-48 flex-shrink-0"> <h4 class="font-semibold mb-4">Links</h4> <ul> <li> ...
<!doctype html> <html lang="en"> <head> <?= $title_meta ?> <?= $this->include('partials/head-css') ?> </head> <?= $this->include('partials/body') ?> <!-- <body data-layout="horizontal"> --> <!-- Begin page --> <div id="layout-wrapper"> <?= $this->include('partials/menu') ?> <!-- ===============...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db\mssql\conditions; use yii\base\NotSupportedException; /** * {@inheritdoc} * * @author Dmytro Naumenko <d.naumenko.a@gmail.com> * @since 2.0.14 *...
<?php /** * PRO Ajax actions used in by admin. * * @package WPForms * @author WPForms * @since 1.2.1 * @license GPL-2.0+ * @copyright Copyright (c) 2016, WPForms LLC */ /** * Deactivate addon. * * @since 1.0.0 */ function wpforms_deactivate_addon() { // Run a security check check_ajax_re...
@extends('layouts.plantilla') @section('content') <section class="invoice"> <div class="row"> <div class="col-xs-12"> <h2 class="page-header"><i class="fa fa-globe"></i> Reembolso <small class="pull-right">Detalles del reembolso</small></h2> </di...
<?php session_start(); $username = 'user'; $user_id = 0; $logged_bool = false; if(isset($_SESSION['login'])) { $username = $_SESSION['login']; $user_id = $_SESSION['user_id']; $logged_bool = true; } ?> <!DOCTYPE html> <html lang='en'> <head> <?php require_once 'php/parts_of_a_website/head.php'...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAddGroupToUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', ...
@extends('admin.dashboard') @section('admin_content') @include('sweetalert::alert') @include('sweetalert::alert', ['cdn' => "https://cdn.jsdelivr.net/npm/sweetalert2@9"]) <ul class="breadcrumb"> <li> <i class="icon-home"></i> <a href="{{URL::to('/admin')}}" class="btn btn-link">Home</a> <i class="icon-angle-rig...
<?php namespace DeliciousBrains\WP_Offload_SES\Aws3\Aws\Crypto; use DeliciousBrains\WP_Offload_SES\Aws3\Aws\Crypto\Cipher\CipherMethod; use DeliciousBrains\WP_Offload_SES\Aws3\Aws\Crypto\Cipher\Cbc; use DeliciousBrains\WP_Offload_SES\Aws3\GuzzleHttp\Psr7\Stream; /** * @internal */ abstract class AbstractCryptoClien...
<?php namespace App\Repositories; use App\Models\Movimiento; use App\Models\Usuario; class MovimientoRepository extends BaseRepository{ protected $usuario; /** * Create a new MovimientoRepository instance. * @param App\Models\Movimiento $movimiento * @param App\Models\Usuario $usuario ...
<div class="content-wrapper"> <section class="content-header"> <h1> Permisos <small>Editar</small> </h1> </section> <section class="content"> <div class="box box-solid"> <div class="box-body"> <div class="row"> ...
<?php /** * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ /** * List of enabled modules for this ...
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit1ab2bf03989e8d39244778184a79eea9::getLoader();
<?php include('dbcon.php'); include('session.php'); $query= mysql_query("select * from users where user_id = '$session_id'")or die(mysql_error()); $row = mysql_fetch_array($query); ...
<!DOCTYPE html> <html class="antialiased"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link href="{{ mix('/css/app.css') }}" rel="stylesheet" /> {{-- <script src="{{ mix('/js/app.js') }}" defer></script> --}} </head> <body...
<div class="page-sidebar-wrapper"> <!-- BEGIN SIDEBAR --> <div class="page-sidebar navbar-collapse collapse" id="main-left"> <!-- BEGIN SIDEBAR MENU --> <div class="page-logo"> <a href="{{url('/dashboard')}}"> <img src="{{ asset('bnet/images/logo.gif') }}" alt="logo" class="logo-default" /> ...
<script type="text/javascript"> window.location=("{{ url('historial') }}"); </script>
@extends('layouts.index') @section('css') <link href="/plugins/select2/css/select2.min.css" rel="stylesheet" /> @endsection @section('content') <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="...
<?php namespace frontend\models; use Yii; /** * This is the model class for table "provinces". * * @property string $id * @property string $name */ class Provinces extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'provinces'; } ...
<?php namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Auth\AuthenticationException; use Throwable; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * * @var array */ protected $do...
<div class="lapload-container"> @if (!is_null($oldFiles) && !empty($oldFiles)) <h4>Current Files</h4> <div class="file-wrapper mb-4"> @foreach ($oldFiles as $index => $file) <div class="single-file"> <img src="{{ asset('storage/'.L...
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInitf277429158b083028978b5155ba5b303 { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '5255c38a0faeba867671b61df...
<?php namespace App\Repositories; use Illuminate\Database\Eloquent\Model; abstract Class BaseRepository { protected $model; public function getAll($columns = array('*')) { return $this->model->get($columns); } public function create($data) { return $this->model->create($data); } public function update(...
--TEST-- var_export(): simple test with arrays and objects --FILE-- <?php /* Prototype : mixed var_export(mixed var [, bool return]) * Description: Outputs or returns a string representation of a variable * Source code: ext/standard/var.c * Alias to functions: */ echo "\n\n-- Var export on a simple object --\...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login_model extends CI_Model { public function cek_login($where) { $query = $this->db->get_where('admin', $where)->num_rows(); return $query; } } ?>
<?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * None...
<!-- Todorovic Jovana 0014/2013--> <!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"> <meta name="description" content=""> <meta name="author" content=""> ...
<?php declare(strict_types=1); namespace Tests\Samples; use MetaRush\Perm\PermissionInterface; use MetaRush\Perm\Request; class MyOwnerFinder implements PermissionInterface { // these are just copies from PermTest.php private const RESOURCE_EDIT_POST = 'editPost'; private const RESOURCE_DELETE_COMMENT =...
<?php namespace app\schema\mutations; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\Type; use app\models\User; use app\schema\Types; class UserMutationType extends ObjectType { public function __construct() { $config = [ 'fields' => function() { retur...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class PopupModel extends Model { protected $guard = "popup"; public $timestamps = true; /** * The database table used by the model. * * @var string */ protected $table = 'popup'; /** * The attributes tha...
<?php /** * PHPUnit * * Copyright (c) 2010-2012, Sebastian Bergmann <sb@sebastian-bergmann.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code m...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use vova07\imperavi\Widget; use vova07\fileapi\Widget as FileAPI; use himiklab\thumbnail\EasyThumbnailImage; use yii\helpers\Url; use yii\helpers\ArrayHelper; use common\models\Category; /* @var $this yii\web\View */ /* @var $model common\models\Category */ /* ...
<?php $rs = \app\modules\Inventory\models\VwDashbaordInvpur::find()->one(); ?> <div class="col-xs-12 col-sm-12 col-md-12"> <table width="100%" class="tb1"> <tr> <td width="5%" style="text-align: left;"></td> <td width="50%" style="text-align: left;"><h4><b>INVENTORY STATUS</b></h4><...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class ChatRoomSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \App\Models\ChatRoom::factory()->count(2)->create(); } }
<?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 | ...
<!DOCTYPE html> <html lang="en"> <head> <title>HEART - @yield('title')</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <base href="{{ asset('') }}"> <!--=============================================================================================...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call([ RoleSeeder::class, EmpresaSeeder::class, ...
<?php /** * Tests for the base Logger class. * * @package McAvoy * @author Steve Grunwell */ namespace McAvoy\Loggers; use McAvoy; use Mockery; use ReflectionMethod; use WP_Mock as M; require_once PROJECT . 'loggers/class-logger.php'; require_once ABSPATH . 'TestLogger.php'; class BaseLoggerTest extends McAvo...
<?php namespace Drupal\libraries\StreamWrapper; use Drupal\Core\StreamWrapper\StreamWrapperInterface; /** * Provides a trait for local hidden streams. */ trait LocalHiddenStreamTrait { /** * Returns the type of stream wrapper. * * @return int * * @see \Drupal\Core\StreamWrapper\StreamWrapperInter...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
<?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 ...
<?php namespace MoocLangues\FormationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use MoocLangues\FormationBundle\Entity\Langue; use MoocLangues\FormationBundle\Entity\Categorie; use MoocLangues\FormationBundle\Entity\Exercice...
<?php namespace App\Http\Middleware; use Closure; use Auth; class CheckStaff { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (Auth::us...
<?php /* * Copyright 2014 Google Inc. * * 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 t...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateStudentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', fun...
<?php namespace App\Http\Controllers\Admin; use App\Article; use Carbon\Carbon; use Illuminate\Support\Facades\View; class ArticleController extends CommonController { public function index(){ $article = new Article(); $article->title = 'My first article'; $article->author_id = 1; ...
@extends('app') @section('content') @include('pages.efficacy.efficacy.partial.breadcrumbs') @include('pages.efficacy.efficacy.partial.content') @endsection
<?php $pageTitle = __('User Activation'); echo head(array('title' => $pageTitle), $header); ?> <h1><?php echo $pageTitle; ?></h1> <p><?php echo html_escape(__('Hello %s, your username is: %s', $user->name , $user->username)); ?></p> <?php echo flash(); ?> <form method="post"> <div class="form-group"> <?...
<?php namespace Github\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; use Github\Runtime\Normalizer\CheckArray; use Symfony\Component\Serializer\Exception\InvalidArgumentException; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\Denormal...
<?php /** * Export plugin for Craft CMS 3.x * * Export elements from Craft * * @link https://statik.be * @copyright Copyright (c) 2019 Statik */ namespace statikbe\export\services; use Craft; use craft\base\Component; use craft\db\Query; use craft\feedme\queue\jobs\ExportJob; use craft\helpers\Json; use E...
<?php namespace DecodesBundle\Repository; /** * CommandRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class CommandRepository extends \Doctrine\ORM\EntityRepository { public function findclosed($user) { $query = $this->getEntityMana...
<?php //1.连接数据库 include "conn.php"; //3.获取前端传入的用户名做唯一值的检测。 if(isset($_POST['xingming'])){ $name = $_POST['xingming']; $result=$conn->query("select * from registry where username='$name'"); //如果存在结果,表示该用户名已经存在,否则不存在。 if($result->fetch_assoc()){//存在 php里面的true返回1 echo true; }else{//不存在,php里面的f...
@extends('layout.admin') @section('content') <!-- 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"> ...
<?php namespace App\Http\Controllers\Admin\Image; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Image; use App\Models\SystemSetting; use Illuminate\Support\Facades\Storage; class ImagesController extends Controller { protected $settings; protected $folders = ['attributes'...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/all.css"> <l...
@extends('master') @section('content') <!-- Content --> <div class="row"> <div class="col-lg-12"> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default panel-fs"> <div class="panel-heading"> <h3 class="pane...
<?php namespace DMT\Insolvency\Model; use JMS\Serializer\Annotation as JMS; /** * Class InspubCbvers * * @JMS\XmlNamespace("http://www.rechtspraak.nl/namespaces/inspubber01") * @JMS\XmlRoot("inspubCbvers", namespace="http://www.rechtspraak.nl/namespaces/inspubber01") */ class InspubCbvers { /** * @JMS\...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class testmodel extends CI_Model { public function getQuestions() { $this->db->select('*'); $this->db->from('drivedetails'); $this->db->where('d_id',$this->session->did); $query=$this->db->get(); $result=$query->result(); $a=$res...
@extends('layouts.master') @section('content') <div class="portlet-body form"> <!-- BEGIN FORM--> <form method="POST" action="{{route('addings.update', ['adding' => $adding['id']])}}" class="form-horizontal" > @csrf <div class="form-body"> <div class="form-gr...
@extends('layouts.admin') @section('content') <h3> {!!link_to('gestion/documentos','Documentos')!!} / Brochure virtual </h3> <br> <div class="well wbSeccion"> {!! link_to_route('gestion.brochure.create', $title = 'Crear', $parameters = [], $attributes = ['class' => 'btn btn-primary wbbtn...
<?php namespace Bravo\ORM; trait handlesExceptions { /** * Shows a message * * @param string $message * @return void */ public function debug(string $message): void { echo PHP_EOL . '<br><pre>' . htmlspecialchars($message) . '</pre>'; } }
<?php namespace Sabre\CalDAV; use Sabre\DAV\Sharing; use Sabre\DAV\Xml\Element\Sharee; class SharedCalendarTest extends \PHPUnit_Framework_TestCase { protected $backend; function getInstance(array $props = null) { if (is_null($props)) { $props = [ 'id' ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Nightworkday extends Model { protected $fillable = ['diagnoses', 'num_card','apdate','fio','work','station']; }
<?php $this->load->view('template/topo'); ?> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <h1 class="page-header">Lista com Receitas</h1> <div class="row placeholders"> <!-- NÃO MEXER DAQUI PARA CIMA --> <button class="btn btn-success" onclick="add_receita()"><i class="glyph...
<?php namespace Tee\TeeworldsBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Tee\TeeworldsBundle\Utils\GamesUtils; /** * Statistics * * @ORM\Table(name="tw_statictics") * @ORM\Entity(repositoryClass="Tee\TeeworldsBundle\Entity\StatisticsRepository") */ class Statistics { /** * @var integer * ...
<?php namespace phpmock\phpunit; use PHPUnit\Framework\MockObject\Matcher\Invocation; use PHPUnit\Framework\MockObject\MockObject; use phpmock\integration\MockDelegateFunctionBuilder; /** * Proxy for PHPUnit's PHPUnit_Framework_MockObject_MockObject. * * @author Markus Malkusch <markus@malkusch.de> * @link bitco...
<?php // A simple server script which allows us to check the utility of this library. session_start(); $route = ($_SERVER['REQUEST_METHOD'] ?? 'GET').'::'.trim($_SERVER['REQUEST_URI'], '/'); switch ($route) { case 'POST::login': if ( in_array($_REQUEST['username'] ?? '', ['keoghan', 'roger'...
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * Bitlocker File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @licens...
<?php use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes ar...
</div> <!--begin::Footer--> <div class="footer bg-white py-4 d-flex flex-lg-column" id="kt_footer"> <!--begin::Container--> <div class="container-fluid d-flex flex-column flex-md-row align-items-center justify-content-between"> <!--begin::Copyright--> <!--<div class="text-dark order-2 order-md-1...
@extends('layouts.admin') @section('content') <form action="{{route('admin.users.store')}}" method="POST" enctype="multipart/form-data"> <div class="card shadow"> <div class="card-header"> <h4 class="text-primary">{{__('adminPanel.userCreate')}}</h4> </div> ...
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\XMPExif; use JMS\Serializer\Annotation\ExclusionPolic...
<div class="row justify-content-center"> <div class="col-md-8"> <div class="card shadow-sm border-bottom-primary"> <div class="card-header bg-white py-3"> <div class="row"> <div class="col"> <h4 class="h5 align-middle m-0 font-weight-bo...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class CategorySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $films = ['Tội Phạm', 'Lịch Sử', 'Chiến Tranh', 'Khoa Học Viễn Tưởng...
<?php namespace App\Notifications; use App\Mail\AttributeAdded; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class AttributeNotification extends Notification implem...
<?php // Autogenerated by Translator Builder use Illuminate\Database\Seeder; use App\Models\User; use App\Models\PersonalSkill; class PersonalSkillTableSeeder extends Seeder { public function run() { $faker = Faker\Factory::create(); PersonalSkill::create([ ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Answer extends Model { protected $fillable = ['body', 'user_id']; public function question(){ return $this->belongsTo(Question::class); } public function user(){ return $this->belongsTo(User::class); } p...
<script> $(function(){ "use strict"; var optionData = new Object();//{}; optionData.url = "{!! route('measurePoint.selectAllMeasurePoints', []) !!}"; optionData.id = "#id"; optionData.id_prefix = "measure_point_element_id"; var form_hidden_input_group_0 = $("#form1_hidden_input_group")...
<?php namespace Yurun\Util\YurunHttp\Handler\Swoole; use Yurun\Util\YurunHttp\Handler\Contract\IConnectionManager; abstract class BaseConnectionManager implements IConnectionManager { /** * 连接对象 * * @var \Swoole\Coroutine\Http\Client[]|\Swoole\Coroutine\Http2\Client[] */ private $connectio...
<?php namespace EJ\PivotGauge; class ServiceMethodSetting { public function initialize ($value) { $this -> initialize = $value; return $this; } } ?>
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use DB, Hash; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $userArray = [ [ 'name' => 'Ankur', 'email' =...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ArtigoCategorias extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('artigo_categorias', function(Blueprint $table) { $table->increments('id'); $...
<?php /** * Mondido * * PHP version 5.6 * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ namespace Mondido\Mondido\Observer; use Magento\Framework\Event\Obs...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use App\Category; class PostController extends Controller { public function index() { $posts = Post::all(); return view("posts.index", compact('posts')); } public function show($postId) { $post = Pos...
<?php // Custom Fields $home_head_title = get_field( 'home_heading_title' ); $home_head_body = get_field( 'home_heading_body' ); $home_head_bg_img = get_field( 'home_heading_bg_img' ); ?> <!-- HOME HEADING SECTION --> <section id="home-heading" class="p-5" style="background-image:url('<?php echo $home_head_bg_img; ?...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $seeders = [ 'RepositorySeeder', 'ProjectSeeder', 'SubjectSeeder' ]; ...
<div> <div class="flex p-4 justify-between"> <div class="flex"> <div class="mr-4 flex-shrink-0"> <a href="{{route('profile', $tweet->user)}}"> <img src="{{$tweet->user->avatar}}" alt="" ...
<?php namespace App\Models; use CodeIgniter\Model; class BlogModel extends Model { protected $table = 'blog'; protected $primaryKey = 'post_id'; protected $allowedFields = ['post_title', 'post_description']; }
<!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> <link rel="stylesheet" href="/css/app.css"> </head> <body> <div ...
<?php class Leaveapplication extends \Eloquent { // Add your validation rules here public static $rules = [ 'applied_start_date' => 'required', 'applied_end_date' => 'required|after:applied_start_date' ]; public static $messages = array( 'applied_start_date.required'=>'Please select start date!', ...
--TEST-- Sorting single field, ascending, using the Cursor Iterator --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php CLEANUP(STANDALONE); LOAD(STANDALONE); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = new MongoDB\Driver\Manager(STANDALONE); $query = new MongoDB\D...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\PrctRfq; use App\PrctSsr1; use Yajra\Datatables\Html\Builder; use Yajra\Datatables\Facades\Datatables; use App\Http\Requests\StorePrctRfqRequest; use Illuminate\Support\Facades\Session; use App\Http\Requests\UpdatePrctR...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ProductCategory extends Model { protected $fillable = [ 'code', 'name', 'image', 'icon', 'depth', 'left', 'right,' ]; public function products() { return $this->has...
@extends('layouts.app') @section('content') <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-lab...