text
stringlengths
2
1.03M
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\AdminBundle\Tests\For...
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Test\Downloader; use Composer\D...
<?php namespace Common\Files\Traits; use Common\Files\FileEntry; use Illuminate\Support\Collection; trait LoadsAllChildEntries { /** * Fetch all children of specified entries. * * @param Collection $entries * @param bool $withTrashed * @return Collection */ protected function lo...
<?php namespace App\Http\Controllers\Content; use App\Http\Requests\Content\ProductGroup\DeleteProductGroupRequest; use App\Http\Requests\Content\ProductGroup\InsertProductGroupRequest; use App\Http\Requests\Content\ProductGroup\UpdateProductGroupRequest; use App\Models\CastProductMethod; use App\Models\Category; use...
<?php use Illuminate\Database\Seeder; use App\Post; use App\About; use App\User; use App\Quotes; use App\Category; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); ...
<?php namespace Kirby\Database; use Closure; use Exception; use Kirby\Exception\InvalidArgumentException; use Kirby\Toolkit\A; use Kirby\Toolkit\Str; use PDO; use PDOStatement; use Throwable; /** * A simple database class * * @package Kirby Database * @author Bastian Allgeier <bastian@getkirby.com> * @link...
<?php namespace app\modules\admin\controllers; use Yii; use app\models\Bookings; use yii\data\ActiveDataProvider; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * BookingsController implements the CRUD actions for Bookings model. */ class BookingsController extends Contr...
<?php $params = array_merge( require __DIR__ . '/../../common/config/params.php', require __DIR__ . '/../../common/config/params-local.php', require __DIR__ . '/params.php', require __DIR__ . '/params-local.php' ); return [ 'id' => 'app-backend', 'basePath' => dirname(__DIR__), 'controllerN...
@extends('layouts.app') @section('content') @if(session()->has('msj')) <div class="alert alert-info" role="alert">{{ session('msj') }}</div> @endif @if(session()->has('errormsj')) <div class="alert alert-danger" role="alert">Error al guardar los datos</div> @endif <form class="form-horizontal" role="...
<?php namespace Atom\Event\Exceptions; use Atom\Event\Contracts\EventListenerContract; use Exception; class ListenerAlreadyAttachedToEvent extends Exception { public function __construct(string $event, EventListenerContract $listener) { $listenerClass = get_class($listener); parent::__constr...
<?php namespace App\Http\Controllers; use App\Models\TaskTemplate; use Illuminate\Http\Request; class TaskTemplateController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** ...
<?php /** * Created by PhpStorm. * User: mac * Date: 16/12/15 * Time: 上午10:32 */ namespace common\models\music; use Yii; use yii\db\ActiveRecord; class Token extends ActiveRecord { public static function getDb() { return Yii::$app->db; } public static function tableName() { ...
<?php $__env->startSection("content"); ?> <div class="col-md-3"> <!-- <div class="panel panel-default"> <div class="panel-heading"> <a href="#"><img src="#" alt="avatar"> <?php echo nl2br(e(Auth::user()->name)); ?> </a> </div> <div class="panel-body"> <ul class="feedFilter"> <li><a hre...
<?php namespace ZxcvbnPhp\Test\Matchers; use ZxcvbnPhp\Matchers\DateMatch; use ZxcvbnPhp\Matchers\BaseMatch; use ZxcvbnPhp\Matchers\MatchInterface; class BaseMatchTest extends \PHPUnit_Framework_TestCase { public function binomialDataProvider() { return [ [0, 0, 1], [1, 0, 1],...
<?php /* * This file is part of OAuth 2.0 Laravel. * * (c) Luca Degasperi <packages@lucadegasperi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Czim\OAuth2Server\Tests\Database\Seeders; use Carbon\Carbon; use Il...
<?php // This file was auto-generated from sdk-root/src/data/s3/2006-03-01/examples-1.json
@extends('layouts.master') @section('content') <h1>Edit City</h1> <p class="lead">Edit the city below. <a href="{{ route('cities.index') }}">Go back to all cities.</a></p> <hr> {!! Form::model($city, [ 'method' => 'PATCH', 'route' => ['cities.update', $city->id] ]) !!} <div class="fo...
<?php /* * This file is part of Sulu. * * (c) MASSIVE ART WebServices GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Sulu\Component\ActivityLog; use Sulu\Component\ActivityLog\Events\Events; use Sulu\Component\ActivityLog\Event...
@extends('layouts.app') @section('content') @if(session()->has('msj')) <div class="alert alert-success" roler="alert">{{ session('msj') }}</div> @endif @if(session()->has('errormsj')) <div class="alert alert-danger" roler="alert">Error al guardar los datos</div> @endif <div class="container"> <div class="row">...
<?php // summary: // Test file to handle image uploads (remove the image size check to upload non-images) // // This file handles both Flash and HTML uploads // // NOTE: This is obviously a PHP file, and thus you need PHP running for this to work // NOTE: Directories must have write permissions // NOTE: This code ...
<?php /** * @link https://github.com/yiiviet/yii2-payment * @copyright Copyright (c) 2017 Yii Viet * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) */ namespace yiiviet\payment; use yii\base\InvalidConfigException; /** * Lớp HashDataSignature hổ trợ tạo chữ ký dữ liệu thông qua ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Reunion * * @package App * @property string $objet * @property string $date * @property string $personnel * @property text $description * @property string $rapport */ class...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Auth; class SessionsController extends Controller { public function __construct() { $this->middleware('guest',[ 'only' => ['create'] ]); } public function create() { ...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Auth; trait AuthUserTrait { private function getAuthUser() { try { return auth()->userOrFail(); } catch (\Tymon\JWTAuth\Exceptions\UserNotDefinedException $e) { response()->json(['auth' => false])->...
<?php namespace AppBundle\Security; use AppBundle\Entity\User; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Exception\UnsupportedUserE...
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use kartik\form\ActiveForm; use kartik\widgets\ActiveField; use kartik\select2\Select2; use app\models\Auto; use app\models\Unit; use app\models\Marka; use app\models\Pod; use app\models\Model; use app\models\Fil; use app\models\Typets; use app\models\Installer;...
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\PercentageHistory; /** * PercentageHistorySearch represents the model behind the search form about `common\models\PercentageHistory`. */ class PercentageHistorySearch extends PercentageHistory { /** ...
<?php $this->load->view('backend/top')?> <?php $this->load->view('backend/menu')?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Tambah Data karyawan<...
<?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\Form; /** * Submits forms if they were submitted. *...
<?php declare (strict_types=1); namespace Rector\CodingStyle\Node; use PhpParser\Node; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Name; use PhpParser\Node\Stmt\Namespace_; use PhpParser\Node\Stmt\Use_; use PhpParser\Node\Stmt\UseUse; use PHPStan\Reflection\ReflectionProvi...
@extends('layouts.app') @section('title') List Spp @endsection @section('page') Data Spp @endsection @section('style') <link rel="stylesheet" type="text/css" href="{{ asset('deskapp/src/plugins/datatables/css/dataTables.bootstrap4.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ asset('...
<?php use yii\grid\GridView; use common\models\Order; use yii\helpers\Html; $dataProvider->sort = false; echo GridView::widget([ 'dataProvider' => $dataProvider, 'filterPosition' => false, 'summary' => '', 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [ [ ...
<?php declare(strict_types = 1); namespace Graphpinator\Type\Addon; final class PostalCodeType extends \Graphpinator\Type\Scalar\ScalarType { protected const NAME = 'PostalCode'; protected const DESCRIPTION = 'PostalCode type - string which contains valid postal code (ZIP code) in "NNN NN" format.'; pro...
<?php // MUST be in the include path include_once($GLOBALS['phpreports']['path'].'/PHPReportsUtil.php'); include_once($GLOBALS['phpreports']['path'].'/PHPReportOutputObject.php'); /********************************************************************************* * * * PHPReports CSV plug...
<?php /** * @package Keysig * @copyright Brilaps, LLC (http://brilaps.com) * @license The MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/x...
<?php /** * starter * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package wpbootstrap */ namespace WPBootstrap; require_once('defines.php'); require(WPBOOTSTRAP_VENDOR_ABS . '/autoload.php'); $WPBootstrap = new WPBootstrap();
<?php namespace Modules\Blog\Database\factories; use Illuminate\Database\Eloquent\Factories\Factory; class ArticleFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = \Modules\Blog\Entities\Article::class; /** * Defi...
<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model app\models\LoginForm */ $this->title = 'Register'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-login"> <h1><?= Html::encode($this->title) ?></h1> ...
<?php /* * Made by Samerton * https://github.com/NamelessMC/Nameless/ * NamelessMC version 2.0.0-pr12 * * License: MIT * * Panel cookies page */ if(!$user->handlePanelPageLoad('admincp.cookies')) { require_once(ROOT_PATH . '/403.php'); die(); } const PAGE = 'panel'; const PARENT_PAGE = 'cookie_div...
<?php namespace Globe\Connect\Voice; use Globe\Connect\Voice; /* * Voice Session API * * @vendor Globe * @package Globe Api * @author Clark Galgo <cgalgo@openovate.com> */ class Session extends Voice { protected $json = NULL; /* * capture json when class is initialize * * @param str...
<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="#"> <div class="sidebar-brand-icon "> <i class="fas fa-building"></i> </div> <div class="sideba...
<?php namespace Auth\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Auth\Form\LoginForm; use Auth\Form\Filter\LoginFilter; use Auth\Utility\UserPassword; use Zend\Session\Container; class IndexController extends AbstractActionController { public function indexAct...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class User_model extends CI_Model { protected $_table_name = 'user'; protected $_primary = 'ID'; public $rules = array( 'username' => array( 'field' => 'username', 'label' => 'Username', 'rules' => 'trim|required' ), 'password' =>...
<?php declare(strict_types = 1); namespace ISPA\ApiClients\App\Lotus\Client; use ISPA\ApiClients\App\Lotus\Entity\UserCreateEntity; use ISPA\ApiClients\App\Lotus\Entity\UserEditEntity; use ISPA\ApiClients\App\Lotus\Filter\UserListFilter; use ISPA\ApiClients\Http\Utils\Helpers; use Nette\Utils\Json; use Psr\Http\Messa...
<?php namespace App\Admin\Controllers; use App\Models\Salary; use Encore\Admin\Auth\Permission; use Encore\Admin\Controllers\AdminController; use Encore\Admin\Facades\Admin; use Encore\Admin\Form; use Encore\Admin\Grid; use Encore\Admin\Layout\Content; use Encore\Admin\Show; use Illuminate\Support\Facades\Gate; clas...
<?php ?> <!-- /.sidebar --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> 403 Access Denied </h1> </section> <!-- Main content --> <section class="conte...
<?php /** * Created by PhpStorm. * User: Sarfraz * Date: 7/15/2019 * Time: 5:29 PM */ namespace Sarfraznawaz2005\ServerMonitor\Senders; use Maknz\Slack\Client; use Sarfraznawaz2005\ServerMonitor\Checks\Check; class Slack implements Sender { /** * Sends notificatin/alert message. * * @param Ch...
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <!-- Main content --> <section class="content"> <div class='error-page'> <h2 class='headline text-yellow' style='margin-top:-...
@extends('admin.layouts.master') @section('content') <div class="row"> <div class="col-lg-12"> <div class="row"> <div class="col-sm-12"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="@if($active_tab == 'manage') active @endif"><a href="...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Crew extends Model { protected $fillable = ['movie_id', 'person_id','known_for', 'job_id']; protected $table = 'crew_movies'; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function person(){ ...
<?php namespace FleetRunnr\ShopifyApp\Actions; use FleetRunnr\ShopifyApp\Contracts\Queries\Shop as IShopQuery; use FleetRunnr\ShopifyApp\Objects\Values\ShopId; /** * Delete webhooks for this app on the shop. */ class DeleteWebhooks { /** * Querier for shops. * * @var IShopQuery */ prote...
<?php session_start(); if(empty($_SESSION['permission'])) { header('location: login.php'); } elseif(empty($_POST['role_id'])) { header('location: role.php'); } elseif($_SESSION['permission']['edit_role'] == '0') { ?> <div class="col-md-12"> <div class="row"><div class="col-md-4 col-md-offset-4 text-ce...
<?php namespace App\Providers; use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvide...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<!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=""> <title>SB Admin 2 - Bootstrap Admin Th...
<div class="row"> <div class="col-xs-12"> <div class="box box-danger"> <div class="box-header with-border"> <div class="pull-left"> <div class="box-title"> <h4><?php echo $judul ?></h4> </div> </div> ...
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\Logger; /** * Logs to syslog service. * ...
<?php namespace Components\Message\Contracts; interface Adapter { }
<?php // create database name 'IIITDMJFUSION' use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class FusionDB extends Migration { /** * Run the migrations. * * @return void */ public function up() { // NAMAN ...
<html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> </head> <body> <?php include('way2sms-api.php'); $date = date("Y/m/d"); //here my date format in my DB is 2010/09/30 $servername = "localhos...
<?php namespace App\Http\Controllers\Api\V1; use App\Http\Controllers\Controller; use App\Models\Geo\Country; use App\Models\Geo\Locality; use App\Models\GoogleAutocompleteQuery; use App\Models\IpInfoQuery; use Illuminate\Http\Request; class LocalityController extends Controller { public function get(Request $re...
@php $page_1 = get_page_by_path('la-institucion/direcciones-zonales'); $page_1_ID = $page_1->ID; $the_post = get_post($page_1_ID); $content = get_post_field( 'post_content', $page_1_ID ); $content_parts = get_extended( $content ); $categories = get_categories( array( 'exclude' => 3, 'orde...
<?php namespace HuaweiCloud\SDK\Eip\V2\Model; use \ArrayAccess; use HuaweiCloud\SDK\Core\Utils\ObjectSerializer; use HuaweiCloud\SDK\Core\Utils\ModelInterface; use HuaweiCloud\SDK\Core\SdkResponse; class BatchCreatePublicipTagsResponse implements ModelInterface, ArrayAccess { use SdkResponse; const DISCRIMIN...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class MicropostsController extends Controller { public function index() { $data = []; if (\Auth::check()) { $user = \Auth::user(); $microposts = $user->feed_microp...
<?php declare(strict_types=1); use Tester\Assert; // The Nette Tester command-line runner can be // invoked through the command: ../vendor/bin/tester . if (@!include __DIR__ . '/../vendor/autoload.php') { echo 'Install Nette Tester using `composer install`'; exit(1); } Tester\Environment::setup(); date_default_...
<?php /* * This file is part of the `src-run/wonka-bundle` project. * * (c) Rob Frawley 2nd <rmf@src.run> * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ namespace SR\WonkaBundle\Tests\Component\DependencyInjection\Compiler\Re...
@extends('layouts.app') @section('title') Dean @endsection @section('header') @include('../layouts/header') @endsection @section('content') @if (isset($useraccount)) @foreach ($useraccount as $ua) @php $deptCode=$ua->dept_code; @endphp @endforeach @endif <div class="cont...
<?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 $this->pageTitle = 'Engagex - DNC State Holidays'; ?> <?php $baseUrl = Yii::app()->request->baseUrl; $cs = Yii::app()->clientScript; $cs->registerCssFile($baseUrl.'/template_assets/css/jquery-ui.css'); $cs->registerScriptFile($baseUrl . '/js/admin/dncHoliday/stateHolidays.js?time='.time()); ?> <?php ...
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Log...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Vacuna extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Vacuna', function (Blueprin...
<!DOCTYPE html> <html lang="en"> <!-- BEGIN HEAD --> <head> <style> .dashboard-stat2 { -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; -o-border-radius: 2px; border-radius: 2px; background: #fff; padding: 15px 15px 14px !important; } .da...
@extends('master') @section('content') <div class="container" style="margin-top: 2%;"> <div class="row"> <h3 class="" style="text-align: center;">Cart items</h1> <a href="ordernow" class="btn btn-success">Order Now</a> @foreach($table_products as $item) <div class="row cart_item_deveider"> <di...
<!DOCTYPE html> <html lang="pt-br"> <head> <!-- Meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content=""> <meta name="author" content=""> ...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit042c7400e54b3b54172bcab253d97980 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Pernyataan_model extends CI_Model { private $_table = "pernyataan"; public function rules() { return [ ['field' => 'id_dimensi', 'label' => 'Id_dimensi', 'rules' => 'required'], ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddColumnDeletedAtInKategoriBerita extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('...
<?php /** * @issue 101 * @var Codeception\Scenario $scenario */ use Step\Functional\UserProfile as ProfileTester; $I = new ProfileTester($scenario); $I->wantToTest('edit user profile'); $email = uniqid() . '@' . uniqid() . '.com'; $id = $I->regularUser(); $I->amOnProfile(); $I->fillEmail($email); $I->clickUpda...
<!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>E-Learning</title> <link ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Image; use Yajra\Datatables\Html\Builder; use Yajra\Datatables\Datatables; use Validator; use Session; use Intervention\Image\ImageManager; use Images; use Illuminate\Support\Facades\Input; use App\Library\Image_moo; cl...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserAuthLoginRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * ...
<?php namespace App\Http\Controllers\Frontend; use Illuminate\Http\Request; use App\Repositories\Contracts\UserInterface; use Exception; use Facades\ { App\Services\PassportService }; class UserController extends FrontendController { public function __construct(UserInterface $userRepository) { pa...
<?php namespace AppBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; /** * CommandeClient controller. * */ ...
<div class="container-fluid"> <div class="row ucp-menu-item"> <div class="container"> @if($alert['sell_all'] > 0 and (!isset($userMeta['seller_apply']) or $userMeta['seller_apply'] == '0')) <div class="col-md-12 col-xs-12"> <div class="alert alert-danger"> ...
<!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=no"> <meta name="csrf-token" content="{{ csrf_token() }}"> <!-- Bootstrap CSS --> <link rel="st...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration{ /** * Run the migrations. * * @return void */ public function up(){ chema::create('users', function (Bluepr...
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Command; /** * @link http://redis.io/commands/pttl * @autho...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Micropost extends Model { protected $fillable = ['content', 'user_id']; public function user() { return $this->belongsTo(User::class); } public function usersFavorite() { return $this->belongsToMany(U...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>管理员</title> <link rel="stylesheet" href="/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/adCommon.css"> </head> <body> <div class="container"> <header> <ul class="cbp-tm-menu"> <li> ...
<?php /** * @package Joomla.Administrator * @subpackage Template.hathor * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.multiselect'); JHtm...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class SaleTransaction extends Model { use SoftDeletes; protected $fillable = [ "customer_id", "email", "billing_address", "terms", "date", "due_date", ...
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
<?php declare(strict_types=1); /* * This file is part of the QuidPHP package <https://quidphp.com> * Author: Pierre-Philippe Emond <emondpph@gmail.com> * License: https://github.com/quidphp/base/blob/master/LICENSE */ namespace Quid\Base; // datetime // class with static methods to generate, format and parse dat...
<?php /** * Created by IntelliJ IDEA. * User: hentschel * Date: 26.07.13 * Time: 09:25 * To change this template use File | Settings | File Templates. */ namespace org\camunda\php\tests; use org\camunda\php\sdk\entity\request\CredentialsRequest; use org\camunda\php\sdk\entity\request\ProfileRequest; use org\camu...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', func...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateParticipantsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('participan...
<?php /** .------------------------------------------------------------------- * | Software: [HDPHP framework] * | Site: www.hdphp.com www.hdcms.com * |------------------------------------------------------------------- * | Author: 向军 <2300071698@qq.com> * | WeChat: aihoudun * | Copyright (c) 2012-20...
<script> $(function(){ PageAction.currenPageActionClassName = '<?= $_GET['currenPageActionClassName'] ?>'; PageAction.currenPageAction = '<?= ucfirst($_GET['action']) ?>'; if (typeof PageAction[PageAction.currenPageActionClassName].doContentAction == 'undefined') { PageAction[PageAction.currenPageActionClas...
<?php /** * @license http://opensource.org/licenses/MIT MIT */ namespace Rdb\Modules\RdbCMSA\Controllers\Admin\TranslationMatcher; /** * Add translation matcher. * * @since 0.0.2 */ class AddController extends \Rdb\Modules\RdbCMSA\Controllers\Admin\RdbCMSAdminBaseController { /** * Use `\Rdb\Modul...
<?php /* * This file is part of the phlexible package. * * (c) Stephan Wentz <sw@brainbits.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Phlexible\Bundle\GuiBundle\Security\RoleProvider; /** * Role provider int...