text stringlengths 2 1.03M |
|---|
<?php
namespace Shopsys\FrameworkBundle\Model\Pricing\Vat\Exception;
use Exception;
class VatMarkedAsDeletedDeleteException extends Exception implements VatException
{
/**
* @param string $message
* @param \Exception|null $previous
*/
public function __construct($message = '', Exception $previ... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Countries';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="country-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(... |
{{ Form::hidden('file','https://lorempixel.com/1200/500/?38376')}}
{{ Form::hidden('user_id',auth()->user()->id) }}
<div class="form-group">
{{ Form::label('category_id','Categoria') }}
{{ Form::select('category_id',$categories, isset($category_id) ? $category_id : null ,["class" => "form-contro... |
<div class="page-header">
<h2><?= t('Edit project') ?></h2>
<ul>
<li ><?= $this->url->link(t('General'), 'ProjectEdit', 'edit', array('project_id' => $project['id']), false, 'popover-link') ?></li>
<li class="active"><?= $this->url->link(t('Dates'), 'ProjectEdit', 'dates', array('project_id' => ... |
<?php
/**
* ThemeREX Addons Custom post type: Properties (Taxonomy 'Features' support)
*
* @package WordPress
* @subpackage ThemeREX Addons
* @since v1.6.22
*/
// Don't load directly
if ( ! defined( 'TRX_ADDONS_VERSION' ) ) {
die( '-1' );
}
// -----------------------------------------------------------------
... |
<?php
use yii\bootstrap4\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Adverts */
$this->title = Yii::t('adv', 'Create advert');
?>
<div class="ads-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
'categories' => $root_cat... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateReportTourTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('report_tour', function (Blueprint $table) {
$table->increments('id');
$... |
<?php
namespace Getresponse\Sdk\Operation\RssNewsletters\UpdateRssNewsletter;
use Getresponse\Sdk\Client\Exception\InvalidCommandDataException;
use Getresponse\Sdk\Client\Operation\CommandOperation;
use Getresponse\Sdk\Client\Operation\Operation;
use Getresponse\Sdk\OperationVersionTrait;
use Getresponse\Sdk\Operation... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
/**
* Copyright (c) BrownBear, 2020 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, o... |
<?php
require_once './vendor/autoload.php';
use Twilio\Twiml;
$response = new Twiml();
$dial = $response->dial();
$dial->sip('sip:jack@example.com');
echo $response; |
<?php
namespace App\Http\Requests\User\Grant;
use Illuminate\Foundation\Http\FormRequest;
class UpdateGrantRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
return true;
}
... |
@extends('layouts.extendedApp')
@section('content2')
<div class="col-md-6">
@forelse($articles as $article)
<div class="panel panel-default">
<div class="panel-heading">
<span>
{{ $article->user->name }}
</span>
<small>
<a href="/ar... |
<?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', function ... |
<?php
namespace Drupal\telephone\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Plugin implementation of the 'telephone_link' formatter.
*
* @FieldFormatter(
* id = "telephone_li... |
<?php
namespace CollectionMacroThanos\Tests\Feature;
use CollectionMacroThanos\ServiceProvider;
use CollectionMacroThanos\Tests\TestCase;
use Illuminate\Support\Collection;
class ThanosCollectionMacroTest extends TestCase
{
protected function getPackageProviders($app)
{
return [ServiceProvider::class... |
<?php
namespace Phalcon\OAuth2\Server;
trait Storage
{
/**
* Server
*
* @var \League\OAuth2\Server\AbstractServer $server
*/
protected $server;
/**
* Set the server
*
* @param \League\OAuth2\Server\AbstractServer $server
*
* @return self
*/
public fun... |
<?php
return [
'plugin' => [
'name' => 'Blogg',
'description' => 'En robust bloggeplattform.',
],
'blog' => [
'menu_label' => 'Blogg',
'menu_description' => 'Administrer blogginnlegg',
'posts' => 'Innlegg',
'create_post' => 'innlegg',
'categories' => ... |
<?php
/*
* This file is part of the SimpleMemoryShared package.
* @copyright Copyright (c) 2012 Blanchon Vincent - France (http://developpeur-zend-framework.fr - blanchon.vincent@gmail.com)
*/
namespace SimpleMemoryShared\Storage;
use SimpleMemoryShared\Storage\Exception\RuntimeException;
/**
* Storage adapter ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHalamanProfil extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('halaman_profil... |
<?php
class PayPal {
/*
* Functions:
* Build payment form.
* Finalize payment with IPN- activate whatever you want to activate, or log the transaction in your db.
**/
function __construct()
{
// Constructor
}
function buildPayment() {
}
// https://developer.paypal.com/docs/ipn/
// htt... |
--TEST--
SPL: ArrayObject from object
--FILE--
<?php
// This test also needs to exclude the protected and private variables
// since they cannot be accessed from the external object which iterates
// them.
class test
{
public $pub = "public";
protected $pro = "protected";
private $pri = "private";
function ... |
1aAon-oz_JrSiYNNZevBeemNPxlMP7ADGUqgTTn-fPH4 |
@extends('layouts.master')
@section('style')
<link href="{{URL::to('css/employee.css')}}" rel="stylesheet">
<link href="{{URL::to('css/common.css')}}" rel="stylesheet">
<link rel="stylesheet" href="{{URL::to('css/styles.css')}}">
@endsection
@section('script')
<script src="http://code.jquery.com/jquery-... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Social Network</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserRating extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public function getCreatedAtAttribute($value){
return $this->attributes['created_at'] = \Carbon\C... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Routing\Controller as BaseController;
class ChartController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function __co... |
<?php
declare (strict_types=1);
namespace Rector\CodingStyle\Rector\Assign;
use RectorPrefix20210828\Nette\Utils\Strings;
use PhpParser\Comment\Doc;
use PhpParser\Node;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\Nop;
use Rector\Core\Re... |
<?php
namespace jeyofdev\wp\dingo\restaurant\widgets;
use \WP_Widget;
use jeyofdev\wp\dingo\restaurant\extending\Timber;
/**
* Class which manages the tag cloud widget
*/
class TagCloudWidget extends WP_Widget {
/**
* @var array
*/
public $fields = [];
/**
* Sets up a new widget instan... |
<?php
use App\controller\RapportController;
?>
<!doctype html>
</div>
</nav>
<!-- HTML & PHP Code -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1 class="h2">Gérer votre... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace App;
use App\Services\Google;
use App\User;
use Illuminate\Database\Eloquent\Model;
class GoogleAccount extends Model
{
protected $fillable = [
'google_id', 'name', 'email', 'token',
];
protected $casts = [
'token' => 'json',
];
public function user()
{
... |
<?php
/*
*
*
* (c) Allen, Li <morningbuses@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Goodcatch\FXK;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection as BaseCollection;
use Illuminate\Sup... |
@extends('layouts.admin')
@section('content')
<div id="wrapper">
@include('admin.navigation')
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Truck Entry Form</h1>
</div>
... |
@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 text-center">
<p>
Teacher Register
</p>
... |
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\UserCountry\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\UserCountry\Columns\City;
class GetCity extends... |
<?php
namespace Reedware\LaravelRelationJoins\Concerns;
use Illuminate\Database\Eloquent\Builder;
trait JoinsBelongsToRelations
{
/**
* Adds the constraints for a relationship join.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \Illuminate\Database\Eloquent\Builder $par... |
#!/usr/bin/env php
<?php
/**
* PhpUnderControl_PhalApiCacheMemcache_Test
*
* 针对 ../../PhalApi/Cache/Memcache.php PhalApi_Cache_Memcache 类的PHPUnit单元测试
*
* @author: dogstar 20150507
*/
require_once dirname(__FILE__) . '/../test_env.php';
if (!class_exists('PhalApi_Cache_Memcache')) {
require dirname(__FILE__)... |
<?php
session_start();
session_unset(); # remove all session var
session_destroy(); # destroy the session
$_SESSION['Authenticted']=false;
?>
<!DOCTYPE html>
<html>
<head>
<title>DB_HW3 Login</title>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=... |
<?php
/**
* Created by PhpStorm.
* User: comaw
* Date: 29.07.2018
* Time: 15:13
*/
namespace backend\models;
/**
* Class UserRealtySearchDeviceService
* @package backend\models
*/
class UserRealtySearchDeviceService extends \common\models\UserRealtySearchDeviceService
{
} |
<?php
use Illuminate\Support\Facades\Route;
Route::get('/',function (){
SEO::setTitle('پنل مدیریت');
return view('admin.index');
});
Route::resource('users',\App\Http\Controllers\Admin\User\UserController::class);
Route::get('/users/{user}/permissions',[\App\Http\Controllers\Admin\User\PermissionController::... |
<?php
namespace Morebec\Orkestra\DateTime;
/**
* Implementation of clock always returning the same fixed date time.
* This can be used in unit tests to have better control of time.
*/
class FixedClock implements ClockInterface
{
private DateTime $dateTime;
/**
* @param DateTime|null $dateTime if null... |
<?php include "inc/header.php";
include "config.php";
include "Database.php";
?>
<?php
$fname = '';
$lname = '';
$email = '';
$db = new Database();
if(isset($_POST['submit'])){
$fname = mysqli_real_escape_string($db->link,$_POST['firstName']);
$lname = mysqli_real_... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\BaseController;
use Illuminate\Http\Request;
use App\Models\GroupCategory;
use Validator;
class GroupCategoryController extends BaseController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Venue;
class VenueController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index... |
<?php
/**
* InlineObject18
*
* PHP version 7.3
*
* @category Class
* @package InfinityFree\DiscourseApi
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Discourse API Documentation
*
*
* The version of the OpenAPI document: latest
* Generated by: https://openapi-gen... |
@extends('Layouts.admin-app')
@section('main-content')
<div class="container">
{{--
@include('inc.messages') --}}
<div class="row">
<div class="col s12 subject-header">
<p class="teal-text">Product Detail</p>
<span><a href="/product/create"><i class="small material-icons too... |
<?php
/**
* @file
* #ddev-generated: Automatically generated Drupal settings file.
* ddev manages this file and may delete or overwrite the file unless this
* comment is removed. It is recommended that you leave this file alone.
*/
$host = "db";
$port = 3306;
// If DDEV_PHP_VERSION is not set but IS_DDEV_PROJE... |
<?php
namespace App\Providers\ViewComposers;
use Illuminate\Contracts\View\View;
use App\User;
use App\Tovar;
use Auth;
use App\Maintext;
class BreadCrumbsComposer{
public function compose (View $view){
$page = $_SERVER['REQUEST_URI'];
$arr1 = explode('/', $page);
//dd($arr1); проверка
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" type="image/x-icon" href="{{ $name->site_logo }}">
<link rel="stylesheet" href="{{ asset('css/... |
<?php
namespace CodeDelivery\Services;
use CodeDelivery\Models\Order;
use CodeDelivery\Repositories\CupomRepository;
use CodeDelivery\Repositories\OrderRepository;
use CodeDelivery\Repositories\ProductRepository;
class OrderService
{
/**
* @var OrderRepository
*/
private $orderRepository;
/**
... |
<?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
// Copyright 2019 NEC Corporation
//
// 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 applicabl... |
<table id="project-list" class="table table-striped table-bordered">
<thead>
<tr>
<th>{{ trans('flash.description') }}</th>
<th>{{ trans('flash.docket') }}</th>
<th>{{ trans('flash.customer') }}</th>
<th>{{ trans('flash.pm') }}</th>
<th>{{ trans('f... |
<?php
return [
'name' => 'Games'
]; |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('videos', functio... |
<?php
session_start();
require_once '../config.inc.php';
include '../inc/entetes.inc.php';
// ----------------------------------------------------------------------------
//
// les paramètres peuvent éventuellement servir; autant les passer à Smarty
$smarty->assign('action', $action);
$smarty->assign('mode', $mode);
... |
<?php
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Symfony\Component\DependencyInjection\Compiler;
use Symfony\Component\DependencyInje... |
<?php
/**
* This file is part of the Klarna Core module
*
* (c) Klarna Bank AB (publ)
*
* For the full copyright and license information, please view the NOTICE
* and LICENSE files that were distributed with this source code.
*/
declare(strict_types=1);
namespace Klarna\Core\Ui\DataProvider;
use Magento\Ui\Dat... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(CitiesTableSeeder::class);
$this->call(LoadsTableSeeder::class);
}
} |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class EditCategoryRequest extends FormRequest {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the... |
<?php
if(isset($_POST['submit']))
{
$errorMsgBag = array();
$errorMsgBag['name'] = empty($_POST['name'])?'Please enter name':'';
$errorMsgBag['email'] = empty($_POST['email'])?'Please enter email':'';
$errorMsgBag['phone_number'] = empty($_POST['pho... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Datapraktikan extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('model_data','m');
}
// ======== CONTROLLER TAMPILAN AWAL=====///
public function index()
{
if(!$this->session->use... |
<button type="button" class="btn btn-icon btn-outline-danger btn-circle btn-sm mr-2" data-toggle="modal" data-target="#delet{{$admin->id}}" >
<i class="flaticon-delete-1"></i></button>
<div class="modal fade" id="delet{{$admin->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true... |
<div class="content-wrapper">
<section class="content-header">
<h1>
Data Alumni
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active"><?=$bred?></li>
</ol>
</section>
<section class="content">
<div cl... |
<?php
/* english */
$lang['startDateText'] = "Value Date";
$lang['text_newRequest'] = "New Request";
$lang['text_moneyMarket'] = "MM Maturity";
$lang['text_moneyMarketBTN'] = "MM ";
$lang['text_requestName'] = "Name of Borrower";
$lang['text_amount'] = "Amount";
$lang['text_amountInThousand'] = "Amount In Thousand";
$... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Socialite;
use App\User;
use Illuminate\Support\Facades\Storage;
class RegisterNewController extends Controller
{
//
public function redirectToProvider($provider)
{
return Socialite::driver($provider)->redirect();
}
... |
<?php
declare(strict_types=1);
namespace Yokai\Batch\Job;
use Throwable;
use Yokai\Batch\BatchStatus;
use Yokai\Batch\JobExecution;
abstract class AbstractJob implements JobInterface
{
/**
* @inheritDoc
*/
public function execute(JobExecution $jobExecution): void
{
if (!$jobExecution->... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="page-actions">
<a class="btn btn-primary" href="{{ route('activite.create')}}" role="button">Ajouter une activité</a>
</div>
<div class="table-filter">
<input class="form-control" type="text" placeholder="Rech... |
<?php
namespace App\Http\Controllers;
use App\Events\NewConversationEvent;
use App\Events\NewMessageEvent;
use App\Events\NewMessageNotificationEvent;
use App\Http\Requests\AcceptOrRejectProjectRequest;
use App\Http\Requests\AddUserSkillRequest;
use App\Http\Requests\ChangePasswordRequest;
use App\Http\Requests\Depos... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Order_product extends Model
{
//
} |
<?php
/**
* INTER-Mediator
* Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
*
* INTER-Mediator is supplied under MIT License.
* Please see the full license for details:
* https://github.com/INTER-Mediator/INTE... |
<?php
class LibraryCategoryController extends TeacherCabinetController
{
public function hasRole() {
return Yii::app()->user->model->getCurrentOrganizationId()==Organization::MAIN_ORGANIZATION && (Yii::app()->user->model->isContentManager() || Yii::app()->user->model->isAdmin());
}
public function... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
class AuthController extends Controller
{
/*
|-------------------------------------------... |
<?php
/*
* FileSender www.filesender.org
*
* Copyright (c) 2009-2017, AARNet, Belnet, HEAnet, SURFnet, UNINETT
* 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... |
@extends('sinhvien.master')
@section('controller','Thông tin')
@section('action','Cá nhân')
@section('content')
<div id="container" class="container">
<div class="row">
<div class="col-xs-6">
<table class="table table-striped">
<tr>
<th>Tên sinh viên</th>
... |
@extends('layouts.app')
@section('content')
<!-- ########## START: MAIN PANEL ########## -->
<div class="sl-mainpanel">
<div class="sl-pagebody">
<div class="card pd-20 pd-sm-40">
<h6 class="card-body-title">Créer un évènement</h6>
<!-- card -->
<!-- sl-mainpanel -->
<!-- ##... |
<?php
namespace Wifinder\CatalogBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that loads and m... |
<?php
/**
* @copyright Copyright (c) 2020 Insolita <webmaster100500@ya.ru> and contributors
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
*/
namespace app\controllers;
use app\models\Comment;
use app\models\Post;
use app\transformers\PostTransformer;
use app\transformers\PostWithRelation... |
<?php
declare(strict_types=1);
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yii\db;
/**
* SchemaBuilderTrait contains shortcut methods to create instances of [[ColumnSchemaBuilder]].
*
* These can be u... |
<?php
declare(strict_types=1);
namespace Yokai\SonataWorkflow\Tests\Admin\Extension;
use Generator;
use Knp\Menu\MenuFactory;
use Knp\Menu\MenuItem;
use PHPUnit\Framework\TestCase;
use Prophecy\Prophecy\ObjectProphecy;
use Sonata\AdminBundle\Admin\AdminInterface;
use Sonata\AdminBundle\Route\RouteCollection;
use Son... |
<!--Inicializar 3 variables, si todos son iguales visualizar la suma del primero con el segundo
y a este resultado se le multiplica por el tercero-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$var1=4;
$var2=4;
$var3=4;
if ($var1 == $var2 && $var2 == $var3) {
ec... |
@push('style')
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="{{ asset('adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css... |
<?php
// This file is autogenerated by bin/build-asset-cdn-json.php
$assets = array (
0 => 'css/jetpack-admin.min.css',
1 => 'css/jetpack-idc.min.css',
2 => 'css/dashboard-widget-rtl.min.css',
3 => 'css/jetpack-admin-rtl.css',
4 => 'css/jetpack-idc-rtl.css',
5 => 'css/jetpack-icons-rtl.css',
6 => 'css/je... |
<?php
namespace SamParkinson\Behat\Test;
use Exception;
use Hamcrest\MatcherAssert;
use PHPUnit_Framework_TestCase;
/**
* A test case that links hamcrests assertion count with PHPUnit.
*
* @author Samuel Parkinson <sam.james.parkinson@gmail.com>
*/
class HamcrestTestCase extends PHPUnit_Framework_TestCase
{
... |
<?php
declare(strict_types=1);
namespace KejawenLab\ApiSkeleton\Controller\ApiClient;
use FOS\RestBundle\Controller\AbstractFOSRestController;
use FOS\RestBundle\Controller\Annotations\Get;
use FOS\RestBundle\View\View;
use KejawenLab\ApiSkeleton\ApiClient\ApiClientRequestService;
use KejawenLab\ApiSkeleton\Entity\A... |
@component('profiles.partials.activity')
@slot('heading')
<a href="{{ "{$activity->subject->favourited->path()}" }}">{{ $profileUser->name }}</a> favourited the reply..
@endslot
@slot('body')
{{ $activity->subject->favourited->body }}
@endslot
@endcomponent |
<?php
/*
* This file is part of the Gisoft package.
*
* (c) Damian Ostraszewski
*
*/
namespace Web\PagesBundle\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use App\PagesBundle\Form\Type\Page as PageT... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class Role extends Model
{
use HasFactory,Notifiable,HasApiTokens;
protected $fillable=['name'];
public fun... |
<?php
class Account_management_m extends CI_Model{
function __construct(){
parent::__construct();
}
function usersaccounts(){
$sql = "select * from users where usertype = 1 or usertype = 2";
$query = $this->db->query($sql);
if($query->num_rows()>0){
$results = $query->result();
... |
<?php $__env->startSection('content'); ?>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header"><?php echo e(__('Login')); ?></div>
<div class="card-body">
<form met... |
<?php
namespace common\models\book_category;
use common\models\Book;
use common\models\Category;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "{{%book_category}}".
*
* @property int $book_id
* @property int $category_id
* @property int $created_at
*
* @property Book $book
* @p... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
//\App\Models\User::factory(1)->create();
$this->call([UsersTableSeeder::class]);
... |
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads ... |
<?php
use app\models\Asunto;
use app\models\Ubigeo;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
$this->title="Ideas en acción";
?>
<style>
.popup .popup_content2
{
position: absolute;
top: 50%;
left: 50%;
background: white;
border: 4px solid #13266B;
width: 500px;
margin-top: -130px;
mar... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/billing/budgets/v1/budget_model.proto
namespace Google\Cloud\Billing\Budgets\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* NotificationsRule def... |
<?php
use yii\helpers\Html;
/* @var $this \yii\web\View */
/* @var $content string */
app\assets\AppAsset::register($this);
dmstr\web\AdminLteAsset::register($this);
$directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
?>
<?php $this->beginPage() ?>
... |
<div class="col-md-4">
@component('partials.dashboard-box',[
'value' => count(
App\Models\Member::all()
),
'title' => 'Members',
'footer_link' => route('members.index'),
])
@endcomponent
</div>
<div class="col-md-4">
@component('partials.dashboard-box',[
'value' => count(
App\Mo... |
<?php
namespace Tenolo\Bundle\FormTypesBundle\Form\EventListener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormEvent;
/**
* Interface FormSuccessSubscriberInterface
*
* @package Tenolo\Bundle\FormTypesBundle\Form\EventListener
* @author Nikita Loges
* @company ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.