text stringlengths 2 1.03M |
|---|
[[$snippet]] <?php
echo 'in another snippet'; |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array<int, class-string|string>
*/
... |
<?php
use frontend\assets\CalendarAsset;
use frontend\models\AgentMeetCalendarSearch;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $agents string[] */
/* @var $agentId int */
$this->title = 'Kalendarz';
$this->params['breadcrumbs'][] = ['label' => 'Leady', 'u... |
<?php
/**
* The file that defines the core plugin class
*
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
*
* @since 1.0.0
* @package Eightshift_Gdpr\Includes
*/
namespace Eightshift_Gdpr\Includes;
use Eightshift_Gdpr\Admi... |
<?php
/**
* QRCode plugin for Craft CMS 3.x
*
* Generate a QR code
*
* @link https://kurious.agency
* @copyright Copyright (c) 2019 Kurious Agency
*/
namespace kuriousagency\qrcode\fields;
use kuriousagency\qrcode\QRCode;
// use kuriousagency\qrcode\assetbundles\qrcodefieldfield\QRCodeFieldFieldAsset;
us... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace frontend\controllers;
use Yii;
use yii\web\Controller;
use frontend\models\LoginForm;
use yii\web\Response;
use yii\helpers\Json;
use yii\filters\Cors;
use yii\web\UploadedFile;
use frontend\controllers\CrmController;
/**
* Site controller
*/
class MasterController extends Controller {
public ... |
<?php
/**
* @name : local config
* @author : peter<stone256@hotmail.com>
*
* this is the place you put all your settings concern the server locally (DEV TESTING .. LIVE).
*/
define('__X_SERVER__', 'DEV');
//do not turn this on before you first run
define('_X_SITEMIN_LOG', false);
//if you use xpPdo class, set... |
<?php
if (get_option('wpyou_news_id'))
{
$newsCats = get_option('wpyou_news_id');
$newsArrays = explode(",",$newsCats);
}
if (get_option('wpyou_products_id'))
{
$productsCats = get_option('wpyou_products_id');
$productsArrays = explode(",",$productsCats);
}
if (get_option('wpyou_partner_id'))
... |
<?php
declare(strict_types=1);
namespace App\Tests\Entity;
use App\Entity\LearningMaterialStatus;
use Mockery as m;
/**
* Tests for Entity LearningMaterialStatus
* @group model
*/
class LearningMaterialStatusTest extends EntityBase
{
/**
* @var LearningMaterialStatus
*/
protected $object;
... |
<?php
use yii\helpers\Url;
return [
[
'class' => 'kartik\grid\CheckboxColumn',
'width' => '20px',
],
[
'class' => 'kartik\grid\SerialColumn',
'width' => '30px',
],
[
'class'=>'\kartik\grid\DataColumn',
'attribute'=>'id_inv',
],
[
'... |
<?php
namespace LukeNoble\Philter\Components;
use Cms\Classes\ComponentBase;
use LukeNoble\Philter\Models\Image as ImageModel;
use Auth;
class UserImages extends ComponentBase
{
public $images;
public $user;
public function componentDetails()
{
return [
'name' => 'UserIma... |
<?php
/**
* @param Protty
* @url www.pder.org
**/
function TalkNew($array, $config)
{
$new = new AdminCor($config);
$key = $new->TalkNew($array);
return $key;
}
function TalkQ($page, $p, $config)
{
$new = new AdminCor($config);
$key = $new->TalkQ($page, $p);
return $key;
}
function TalkDel... |
<?php
namespace Twilio\Security;
use Twilio\Values;
/**
* RequestValidator is a helper to validate that a request to a web server was actually made from Twilio
* EXAMPLE USAGE:
* $validator = new RequestValidator('your auth token here');
* $isFromTwilio = $validator->validate($_SERVER['HTTP_X_TWILIO_SIGNATURE'],... |
<?php
use App\User;
use App\Role;
use Faker\Factory;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;
use Webpatser\Uuid\Uuid;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')... |
<div id="TransportTouristique" class="section primary-section">
<div class="triangle"></div>
<div class="container">
<div class="title">
<h1>Transport touristique</h1>
<p>
Vous êtes un tour opérateur, comité d’entreprise, association, club de retraités, groupes de... |
<?php
class ModelExtensionRetailcrmCustomer extends Model {
/**
* Upload customers
*
* @param array $customers
*
* @return mixed
*/
public function uploadToCrm($customers)
{
$customersToCrm = array();
/** @var CustomerManager $customer_manager */
$custo... |
@extends('layouts.teacher')
@section('content')
<div class="container">
{!! Breadcrumbs::render('tcourse', $course) !!}
<div id="toolbar">
<button class="btn btn-success" id="add-unit-btn">新增单元</button>
<input type="hidden" name="" id="courses-id" value="{{$cId}}">
</div>
<table id="un... |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">-->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter... |
<?php
use Ghunti\HighchartsPHP\Highchart;
use Ghunti\HighchartsPHP\HighchartJsExpr;
$chart = new Highchart();
$chart->includeExtraScripts();
$chart->chart = array(
'type' => 'gauge',
'plotBackgroundColor' => null,
'plotBackgroundImage' => null,
'plotBorderWidth' => 0,
'plotShadow' => false
);
$cha... |
<?php
namespace TrusCRUD\Builder;
class Builder {
function run() {
}
} |
<?php
// required variables
require("config.php");
if ($submitted == 1)
{
if ($filling=="viewcheck")
{
//echo "alert($dupnumrows...we are in viewcheck and gotocheck $gotocheck)";
... |
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Zabuun - Learn Arabic for English Speakers</title>
<meta name="description" content="">
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?>
<?php include $_SERVER... |
<?php
namespace App\Http\Resources\Admin;
use Illuminate\Http\Resources\Json\JsonResource;
class ServicerResource extends JsonResource
{
public function toArray($request)
{
return parent::toArray($request);
}
} |
--TEST--
Test array type hinting with ref
--FILE--
<?php
function test(array &$x){
}
$arr = [];
test($arr, 1);
echo "Done.";
--EXPECTF--
Done. |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInitbf42d4f56f2db427312379cbf695fd35
{
public static $files = array (
'c4670b137cd593dedee15040d8ebbf56' => __DIR__ . '/..' . '/upyun/sdk/upyun.class.php',
);
public static function getInitialize... |
<?php
namespace Rails\Exception\PHPError;
class Unknown extends Base
{
protected $title = 'PHP Unknown Error';
} |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019-04-04
* Time: 下午 7:08
*/
namespace app\admin\controller;
use think\Controller;
class Tian extends Controller
{
public function getData()
{
header('Content-type:text/html;charset=utf-8');
$appkey = "bc077f7bd446afd2f8607... |
<?php
class Pages extends CI_Controller{
public function view($page ='home'){
if(!file_exists(APPPATH.'views/pages/'.$page.'.php')){
show_404();
}
$data['title']=ucfirst($page);
$this->load->view('templates/header');
$this->load->view('pages/'.$page, $data);
$this->load->view('templates... |
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class UserModelcrm extends CI_Model
{
public function __construct()
{
}
public function allUsersAdmin()
{
$query = "user_type = '2' OR user_type = '1'";
$res= $this->db->select('*')->get_where(PR.'customer', $... |
<?php
namespace App\AdminModel;
use Illuminate\Database\Eloquent\Model;
class BrandType extends Model
{
protected $fillable=[
'brandtype','brandname'
];
} |
<div class="row">
<div class="col-md-12">
<div class="panel panel-primary" id="conteudo_tabela">
<div class="panel-body">
<table class="table table-hover rt cf " id="rt1">
<thead class="cf">
<tr>
<th class="... |
<?php
namespace App\Http\Controllers\User;
use App\Role;
use App\User;
use App\Sale;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
class InvoiceController extends Controller
{
public function index()
{
$invoices = Sale::with('user','carts')
... |
<?php
/**
* RemoveMigrationDatabaseVersionMigration.php
*
* @since 27/07/16
* @author gseidel
*/
namespace Enhavo\Bundle\MigrationBundle\Migration\M0M2H0;
use Enhavo\Bundle\MigrationBundle\Migration\AbstractMigration;
class RemoveMigrationDatabaseVersionMigration extends AbstractMigration
{
public function... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{$title}}</title>
<style>
*{ margin:0; padding: 0; }
body{ background: #fff; margin: 0; padding: 0; font-family: 'Arial'; }
@media only screen and (max-width: 640px) {
body[yahoo] .deviceWidth {width:100%!important; padding:0; }
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
@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">
<h3>1099 Accounting</h3>
<h6>{{$saved_commission->name... |
<?php
namespace Czjwc\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
$this->show('沧州警卫处前台首页','utf-8');
}
} |
<?php
namespace App\Droit\Option\Entities;
use Illuminate\Database\Eloquent\Model;
class OptionGroupe extends Model
{
protected $table = 'colloque_option_groupes';
public $timestamps = false;
protected $fillable = ['text','colloque_id','option_id'];
public function colloque()
{
return ... |
<?php
namespace App\Command\GameData;
use App\Command\CommandHelperTrait;
use App\Common\Constants\RedisConstants;
use App\Common\Service\Redis\Redis;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Compo... |
<?php
namespace Course\Support\Traits;
use Course\Models\User;
trait EnrolledUserMutator
{
/**
* Alias for BelongsToManyUsers.
*
* @return \Illuminate\Database\Eloquent\Collection
*/
public function getStudentsAttribute()
{
return $this->users;
}
/**
* Get the st... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTCourseTimeAssociateTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('t... |
<?php
/* erko3™ framework ~ an evolving, robust platform for rapid & efficient development of modem responsive static or dynamic website;
* Built by SlimEdge™ [@officialSEID - www.seid.com.ng] using PHP, HTML, CSS, JS & derived technology.
* © July 2016 | version 1.0
* ===============================================... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Form;
class FormServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
Form::component('bsText', 'components.form.text', ['name', ... |
<div class="content">
<div class="container-fluide">
<div class="row">
<div class="col-md-12">
<div class="card card-primary card-outline">
<!-- form start -->
<div class="col-md-6 offset-md-2">
<div class="card-header">
<div class="float-right">
<a class="btn btn-warning" href=... |
<?php /**
* Cocoon WordPress Theme
* @author: yhira
* @link: https://wp-cocoon.com/
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
*/
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div class="metabox-holder">
<!-- コメント -->
<div id="page-page" class="postbox">
<h2 class="hndle"><?php _e( 'コメント設定',... |
<?php
namespace EscolaLms\Files\Tests\Api;
use EscolaLms\Files\Tests\TestCase;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Str;
class FilesApiUploadTest extends TestCase
{
public function testSingleFileUpload()
{
$target = '/';
$file = UploadedFile::fake()->image('file');
... |
<?php
namespace App\Providers;
use App\Services\FileUpload;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
use DB;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
... |
<?php
namespace Oro\Bundle\TagBundle\Tests\Selenium\Pages;
use Oro\Bundle\TestFrameworkBundle\Pages\AbstractPageEntity;
/**
* Class Tag
*
* @package Oro\Bundle\TestFrameworkBundle\Pages\Objects
* {@inheritdoc}
*/
class Tag extends AbstractPageEntity
{
/** @var \PHPUnit_Extensions_Selenium2TestCase_Element ... |
<?php
/**
* @name eolinker ams open source,eolinker开源版本
* @link https://www.eolinker.com/
* @package eolinker
* @author www.eolinker.com 广州银云信息科技有限公司 2015-2017
* eoLinker是目前全球领先、国内最大的在线API接口管理平台,提供自动生成API文档、API自动化测试、Mock测试、团队协作等功能,旨在解决由于前后端分离导致的开发效率低下问题。
* 如在使用的过程中有任何问题,欢迎加入用户讨论群进行反馈,我们将会以最快的速度,最好的服务态度为您解决问题。
*... |
<div class="modal fade modal-slide-in-right" aria-hidden="true" role="dialog" tabindex="-1" id="modal-registA-{{$valor}}">
{!!Form::open(array('url'=>'DocenteSCH/Test/Resp','method'=>'POST','autocomplete'=>'off','files'=>'true'))!!}
{{Form::token()}}
@csrf
<div class="modal-dialog">
... |
<?php namespace BackupManager\Laravel;
use Illuminate\Console\Command;
/**
* Class Laravel4DbListCommand
* @package BackupManager\Laravel
*/
class Laravel4DbListCommand extends DbListCommand {
use Laravel4Compatibility;
} |
<?php
/*
* BlueCloud PHP MVC
* Bluecloud is a simple PHP MVC app made using PHP
* MIT Licensed Project
* Copyright (c) 2017 Vhexzhen Lei
* vhexzhenlei.tk
*/
/*
* Default Generic Function of BlueCloud
* Do not delete this file or modify the contents of it unless you know what you are doing!
*/
function base_url($ext ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Submission extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['form', 'json'];
} |
@extends('layouts.admin')
@section('content')
<!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">
<title>Document</title>
<style>
form{
margin-lef... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
# En este caso busca el directorio actual, y carga el ACL
require_once dirname(__FILE__).'/Acl.php';
/**
* Librería de Usuarios
*/
class User {
private $CI;
private $table = 'user';
private $lang;
private $acl;
private $errors = [];
private $... |
<?php
namespace Jarouche\ViaCEP;
class BuscaViaCEPLogradouro extends BuscaViaCEPJSON
{
public function retornaCEP($cep)
{
extract($cep);
if(trim($uf) == "" || trim($cidade) == "" || trim($logradouro) == "" ){
throw new \Exception("Os parâmetros uf,cidade e logradouro deve ser pree... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\grid\GridView;
use app\modules\eoffice_form\models\ReqTemplate;
/* @var $this yii\web\View */
/* @var $model app\modules\eoffice_form\models\ReqTemplate */
$this->title = 'Template : '.$model->template_name;
$this->params['breadcrumbs'][] = ['label' => ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class F2C1Controller extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public func... |
<?php
namespace Keboola\Test\Common;
use Keboola\Test\StorageApiTestCase;
use Keboola\StorageApi\Options\Components\ListComponentsOptions;
use Keboola\StorageApi\Components;
use Keboola\StorageApi\Options\Components\Configuration;
use Keboola\StorageApi\Options\Components\ConfigurationRow;
use Nette\Utils\Json;
clas... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRolesUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{ Schema::create('roles_users', functi... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\TypePremise */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="type-premise-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name_type')->textInput(['maxlength' => tr... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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/LICENS... |
@extends('layouts.admin')
@section('content')
<div class="app-content content">
<div class="content-wrapper">
<div class="content-header row">
<div class="content-header-left col-md-6 col-12 mb-2">
<div class="row breadcrumbs-top">
<div... |
<?php
namespace Spatie\Activitylog;
use Illuminate\Auth\AuthManager;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Models\Activity;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Config\Repository;
use Spatie\Activitylog\Exceptions\CouldNotLogActivity;
class ActivityLogger
{
u... |
<?php
namespace Database\Factories;
use App\Models\categori;
use Illuminate\Database\Eloquent\Factories\Factory;
class CategoriFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = categori::class;
/**
* Define the m... |
<?php
namespace App\Admin\Controllers;
use App\Models\Asset;
use App\Models\AssetCategory;
use App\Models\Department;
use App\Models\User;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\M... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRatingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ratings', funct... |
<?php
/**
* Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the... |
<?php response_header('PEAR Support :: Developing Effectively with PEAR packages'); ?>
<h1>Developing Effectively with PEAR Packages</h1>
<h5>by Justin Patrin, edited by Gregory Beaver</h5>
<h2>Introduction</h2>
<p>
This document is the result of years of collected helpful hints that everyone
using PEAR packages shou... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\Walmart\ItemsManager;
use App\Integration\walmart;
use App\Mail\SendMail;
use App\Models\Walmart\Items;
use App\Models\User;
use App\Models\WalmartMarketPlace;
use Illuminate\Support\Facades\Mail;;
use Illuminate\Support\Facades\Conf... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
@extends('layouts.app')
<link href="{{ asset('css/login.css') }}" rel="stylesheet">
@section('content')
<!-- <style>
.co a{
color:black;
}
</style> -->
<div class='float-right pr-4 pt-4 co' >
<a href="{{url('home')}}">Home </a>
/<a href="{{url('restaurants')}}"> Restaurants</a>
/<a href="{{url('book',$... |
<?php
namespace StatsBundle\Repository;
/**
* SynonymRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class SynonymRepository extends \Doctrine\ORM\EntityRepository
{
} |
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:76:"C:\phpStudy\PHPTutorial\WWW\tp/application/index\view\cure\patient_edit.html";i:1538203222;s:74:"C:\phpStudy\PHPTutorial\WWW\tp\application\index\view\common\userinfo.html";i:1538038290;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w... |
<?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\Bundle\FrameworkBundle\Tests\Controller;
use Doctrine\Common\Pe... |
<?php
/*
* Copyright (c) 2014-2019 Christophe Painchaud <shellescape _AT_ gmail.com> and Sven Waschkut <pan-c _AT_ waschkut.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<base href="../" />
<title>Login - Ace Admin</title>
<!-- include common vendor stylesheets & fontawesome -->
<link rel="stylesheet" type... |
<?hh
/* (counterpart: ext/standard/tests/reg/004.phpt) */
$a="This is a nice and simple string";
if (mb_ereg(".*nice and simple.*",$a)) {
echo "ok\n";
}
if (!mb_ereg(".*doesn't exist.*",$a)) {
echo "ok\n";
} |
<?php
namespace Admin\Form\User;
use Application\Form\AbstractForm;
use Application\Model\LocaleCountries;
/**
* List Form
*
* @package Admin\Form
* @created 2015-08-25
* @version 1.0
* @author thailh
* @copyright YouGo INC
*/
class AddAddressForm extends AbstractForm
{
/**
* Table ... |
<?php
namespace App\Repositories\Contracts;
use App\Repositories\BaseRepository\BaseRepositoryContract;
interface DoctorRepositoryContract extends BaseRepositoryContract
{
} |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\vendor\wdmg\forms\models\Fields */
$this->title = Yii::t('app/modules/forms', 'Create field');
$this->params['breadcrumbs'][] = ['label' => $this->context->module->name, 'url' => ['list/index']];
$this->params['breadcrumbs'][] = ['label' =>... |
<?php
class Group_permission_model extends MY_Model {
function __construct() {
parent::__construct();
}
public $before_create = array('timestamps');
public $table = "babes_group_permission";
public $primary_key = "id";
public $soft_deletes = true;
} |
<?php
namespace Cygnus\OlyticsBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/test');
$this->assertTru... |
<?php
/*
* Made by RobiNN
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr12
*
* License: MIT
*
* Slovak Language - Admin
*/
$language = array(
/*
* Admin Control Panel
*/
// Login
're-authenticate' => 'Prosím znova sa autentifikujte',
// Sidebar
'das... |
<?php
/**
* Gezere Llibrary
*
* Copyright (C) 2006-2013 Gezere Solutions Web
*
* PHP Version 5.3+
*
* This program 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 3 of the License, or
... |
<?php
use Illuminate\Support\Facades\Route;
use App\models\project;
use App\Http\controllers\PartnersController;
use App\Http\controllers\ProjectsController;
use App\Http\controllers\ServicesController;
/*
|--------------------------------------------------------------------------
| Web Routes
|---------------------... |
<?php
require_once('../../../private/initialize.php');
if(!isset($_GET['id'])) {
redirect_to('index.php');
}
$users_result = find_user_by_id($_GET['id']);
// No loop, only one result
$user = db_fetch_assoc($users_result);
// Set default values for all variables the page needs.
$errors = array();
if(is_post_request... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Mail;
class EmailController extends Controller
{
public function test()
$data = null;
{
Mail::send('emails.test.test', $data, function ($message) use ($attach)
{
$message->from('Al... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Visit extends Model
{
protected $fillable = [
'client_id','date'
];
public function client(){
return $this->belongsTo(Client::class,'client_id');
}
public function measurements(){
return $this->hasMa... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Laraveldaily\Quickadmin\Observers\UserActionsObserver;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\SoftDeletes;
class Articles extends Model {
use SoftDeletes;
/**
* The attributes that should be mutated to dates.
*
* @v... |
@extends('admin.partails.master')
@section('content')
@if (Session::has('message'))
<div class="alert alert-success">
{{Session::get('message')}}
</div>
@endif
<nav class="page-breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{route('reports.index')}}">{{__('globle.Action.Back')}}</a><... |
<?php
return [
'Song ', 'Wei ', 'Hong ', 'Wa ', 'Lou ', 'Ya ', 'Rao ', 'Jiao ', 'Luan ', 'Ping ', 'Xian ', 'Shao ', 'Li ', 'Cheng ', 'Xiao ', 'Mang ',
'Fu ', 'Suo ', 'Wu ', 'Wei ', 'Ke ', 'Lai ', 'Chuo ', 'Ding ', 'Niang ', 'Xing ', 'Nan ', 'Yu ', 'Nuo ', 'Pei ', 'Nei ', 'Juan ',
'Shen ', 'Zhi ', 'Han ', '... |
<?php
define("CONSUMER_KEY", "dFVBrBWug293MWqUGA2YMnVOI");
define("CONSUMER_SECRET", "J3iqlSPLFV6qifQCxPHiggEx3WMCJN8dCVPSaxG8PT6vpse0cQ");
define("ACCESS_TOKEN", "3500472432-6t6NXhT7oSoXBv87FicR2jtd5ptmB7Cqp5wBXJk");
define("ACCESS_SECRET", "ZUcomWX2QEIoFpEuVl44w2kxHEoVurXtGJnzvahm0bvlq");
define("MYSQL_CONNECTSTRING... |
@extends('admin.layouts.app')
@section('title')
<title>Astroaquila | Manage General Faq</title>
@endsection
@section('style')
@include('admin.includes.style')
@endsection
@section('content')
<!-- Top Bar Start -->
@include('admin.includes.header')
<!-- Top Bar End -->
<!-- ========== Left Sidebar Start ==========... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class v_blog extends CI_Controller {
public function index()
{
$this->load->model('list_blog');
$data['artikel'] = $this->list_blog->get_artikels();
$this->load->view('home_view', $data);
}
public function add()
{
$this->load->... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ServiceRequestsServices extends Model
{
//
} |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.