text stringlengths 2 1.03M |
|---|
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $judul;?>
<small>Management</small>
</h1>
<ol class="breadcrumb">
<li><a href="./dashboard"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active"><?php echo $judul;?></l... |
<?php
class Biblioteca {
const Nome = "GTK ";
}
class Aplicacao extends Biblioteca
{
const Ambiente = "GNOME Desktop";
const Versao = "3.8";
function __construct($Nome) {
echo parent::Nome . self::Ambiente . self::Versao . $Nome . "<br />";
}
}
echo Biblioteca::Nome . Aplicacao::Ambiente... |
<?php
namespace UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Sym... |
@extends('layouts.master')
@section('title', 'Welcome To The Hell !')
@section('content')
<h1>Welcome The Creators</h1>
<form action="/blog" method="post">
<p>Tittle :</p><input type="text" name="tittle" value="{{ old('tittle')}}"> <br>
@if($errors->has('tittle'))
<p> {{ $errors-... |
<?php
namespace App\Http\Requests;
use App\Models\Invitation;
class CreateOnlinePaymentRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validati... |
<?php
abstract class Swift_Transport_AbstractSmtpTest extends \SwiftMailerTestCase
{
/** Abstract test method */
abstract protected function _getTransport($buf);
public function testStartAccepts220ServiceGreeting()
{
/* -- RFC 2821, 4.2.
Greeting = "220 " Domain [ SP text ] CRLF
--... |
<?php namespace YavorIvanov\CsvImporter;
use Illuminate\Support\Facades\Schema;
trait CSVReferenceTrait
{
public static function bootCSVReferenceTrait()
{
// Auto-increments the csv_id index if none is given.
static::saving(function($model)
{
$cols = Schema::getColumnListing... |
<?php
namespace wartron\yii2account\tests;
use Codeception\Specify;
use wartron\yii2account\helpers\Password;
use wartron\yii2account\models\RegistrationForm;
use wartron\yii2account\models\Token;
use wartron\yii2account\models\Account;
use tests\codeception\_fixtures\AccountFixture;
use yii\codeception\TestCase;
cl... |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ApiPlatform\Core\Metadata\Resource\Factory;
use ApiPlatform\Core\Excep... |
<?php
namespace Gemueseeggli\Database\Model;
use Doctrine\Common\Collections\ArrayCollection;
use Gemueseeggli\Database\Model\BaseModel;
use Gemueseeggli\Database\Model\Article;
require_once('BaseModel.php');
/**
* @Entity @Table(name="prices")
*/
class Price extends BaseModel
{
/**
* @Column(type="decimal... |
@extends('template.index')
@section('content')
<div class="row">
<form action="/hst/dpnj" method="post" enctype="multipart/form-data" class="form-horizontal">
{{ csrf_field() }}
<div class="col-md-2">
<input type="text" class="form-control has-feedback-left tanggal" name="tglhst1" placeholder=... |
<?php
namespace App\Repositories\Tax;
use App\Repositories\CrudInterface;
interface TaxInterface extends CrudInterface{
public function createType($type = 'cat', $request);
} |
<?php
$config->chat->logLine = 20;
$config->chat->require = new stdclass();
$config->chat->require->create = 'gid, name, type';
$config->chat->require->edit = 'gid, name, type';
$config->chat->user = new stdclass();
$config->chat->user->canEditFields = array('avatar', 'birthday', 'gender', 'email', 'skype', 'qq', '... |
<?php
/**
* OuterStringTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please ... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace Thecodebunny\eBayApi\Trading\Enums;
class ReasonHideFromSearchCodeType
{
const C_DUPLICATE_LISTING... |
<?php
namespace Lazzard\FtpClient\Tests\Command;
use Lazzard\FtpClient\Command\FtpCommand;
use Lazzard\FtpClient\Exception\CommandException;
use Lazzard\FtpClient\Tests\ConnectionHelper;
use PHPUnit\Framework\TestCase;
class FtpCommandTest extends TestCase
{
public function test__constructor()
{
... |
<?php
require "../boot/bootstrap.php";
use Models\Logs;
use PHPHtmlParser\Dom;
use Monolog\ErrorHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
$client = new GuzzleHttp\Client([
'base_uri' => env("DATASOURCE_URL"),
"verify" => false,
]);
$jar = new \GuzzleHttp\Cookie\CookieJar;
$is_lba = false;... |
<?php
namespace App\Command;
use App\Services\Config;
use Ozdemir\Datatables\Datatables;
use App\Utils\DatatablesHelper;
class Update
{
public static function update()
{
Update::migrateConfig();
}
public static function migrateConfig()
{
global $System_Config;
$copy_result=copy(BASE_PATH.... |
@component('mail::message')
#Confirmation de Compte
<p>Bonjour {{$user->last_name}} Vous venez de creer un compte avec cette adresse email {{$user->email}}
Veillez confirmer votre Compte en cliquant sur ce lien </p>
@component('mail::button', ['url' => $url])
Confirmer votre Compte
@endcomponent
Thanks,<br>
{{ c... |
<?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... |
@extends('layouts.public')
@section('page_styles')
{!! Html::style('css/styles.less', array('rel' => 'stylesheet/less')) !!}
{{-- todo: remove this on production --}}
{!! Html::style('css/auth.css', array('media'=>'screen')) !!}
@stop
@section('page_scripts')
{!! Html::script('components/jquery-validati... |
<?php
namespace wheelform\services;
use Craft;
use craft\helpers\Template;
use yii\helpers\Html;
class FieldService extends BaseService
{
private $type;
private $options;
private $order;
private $required;
private $name;
private $value;
/**
* @var string
*/
private $fie... |
<nav class="navbar navbar-expand-lg navbar-absolute fixed-top navbar-transparent">
<div class="container-fluid">
<div class="navbar-wrapper">
<div class="navbar-toggle">
<button type="button" class="navbar-toggler">
<span class="navbar-toggler-bar bar1"></span... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class murid extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->model('m_murid');
if($this->session->userdata('status') != "login")
{
$this->session->set_flashdata("msg"... |
@extends('master')
@section('title', 'Проверка сайта')
@section('content')
<div style="margin: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
<div class="well well bs-component">
<form class="form-horizontal" method="post">
<input type="hidden" name="_token" valu... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Auth\Passwords\CanResetPassword;
class Registro extends Model
{
use HasFactory;
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are gi... |
@include('frontend.layouts.header')
<style>
#logodecapital {
width: 30%;
}
.imgdecapital {
width: 100%;
}
@media only screen and (max-width: 768px) {
#logodecapital {
width: 50%;
}
.imgdecapital {
width: 100%;
}
}
* {
... |
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... |
<?php
namespace App\Http\Controllers\AdminControllers;
use App\Http\Controllers\AdminController;
use App\Objects\Page;
use App\Objects\Media;
class PageController extends AdminController
{
public function initListing()
{
$this->initProcessFilter();
$page = Page::select('id', 'name', 'url', '... |
<?php
namespace App\Http\Controllers\Admin;
use App\Events\NewMessageAdded;
use App\Http\Controllers\Controller;
use App\Models\Message;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class ChatController extends Controller
{
public function sendMessage(Request $request){
$message = M... |
<?php
#This first set of functions are useful for RESTful API
#These functions are based on cURL. the cURL module must be enabled in php
/*Auxillary function for making GET requests
using cURL
public get function
params: needs to be an associated array of parameters
url: is the url where the request is pos... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/5/14
* Time: 11:41
*/
namespace app\index\controller;
class Act
{
public function act1()
{
return view();
}
public function gongyi()
{
return view();
}
public function sl30()
{
re... |
<?php
namespace Fdbc\Carchooser\FrontBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Energy
*
* @ORM\Table()
* @ORM\Entity
*/
class Energy
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
... |
<?php return unserialize('a:4:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Entity":2:{s:15:"repositoryClass";N;s:8:"readOnly";b:0;}i:1;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:16:"TuteurEntreprise";s:6:"schema";N;s:7:"indexes";N;s:17:"uniqueConstraints";N;s:7:"options";a:0:{}}i:2;O:55:"PUGX\\MultiUserBundle\\Validato... |
<?php
use yii\widgets\ListView;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
jarrus90\WebsiteComments\CommentAsset::register($this);
if (!Yii::$app->user->isGuest) {
$formItem = ActiveForm::begin([
'layout' => 'horizontal',
'enableAjaxValidation' => true,
'en... |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Microsoft;
use JMS\Serializer\Annotation\ExclusionPolic... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... |
<?php
/**
* Created by PhpStorm.
* User: HOANDHTB
* Date: 9/18/2016
* Time: 2:41 PM
*/
namespace backend\models;
use kartik\helpers\Html;
use Yii;
use yii\data\ArrayDataProvider;
use yii\helpers\Url;
use backend\BLL\RoleBLL;
class BookElectronic
{
public static function create($id_class,$id_Week)
{
... |
<?php
/*
* @Description:
* @Author: LMG
* @Date: 2020-01-03 20:50:14
* @LastEditors : LMG
* @LastEditTime : 2020-01-03 23:58:51
*/
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Models\User;
use Faker\Generator as Faker;
use Illuminate\Support\Str;
/*
|-------------------------------------... |
<?php
/**
* The organization model
*
* @package Gems
* @subpackage Model
* @author Menno Dekker <menno.dekker@erasmusmc.nl>
* @copyright Copyright (c) 2011 Erasmus MC
* @license New BSD License
* @version $Id: RespondentRelationInstance.php 2763 2015-10-30 18:33:48Z matijsdejong $
*/
/**
*
* ... |
@extends('layouts.admin')
@push('css')
<meta name="csrf-token" content="{{ csrf_token() }}">
<style>
.admission-form-title{
margin-bottom: 5px;
margin-top: 10px;
background-color: #e4e4e4;
padding-left: 10px;
}
p{
font-family: 'Raleway', sans-serif;
font-size: 14px;
font-weig... |
<?php
if(!function_exists('show_status_bg')) {
function show_status_bg($status) {
$list_session = array(
'status_isvalid' => 'alert-danger',
'status' => 'alert-success'
);
if(array_key_exists($status, $list_session)){
return $list_session[$status];
}
}
}
if(!function_exists('show_html_status_find'... |
@extends('layouts.app')
@section('content')
<div class="container">
<h4 class="grey-text text-darken-2 center">管理者</h4>
{{-- Show All Admins List as a card --}}
<div class="card col s12 m12 l12 xl12">
<div class="card-content">
<div class="row mb-0... |
<?php
namespace app\admin\controller\solution;
use app\common\controller\Backend;
/**
*
*
* @icon fa fa-circle-o
*/
class Special extends Backend
{
/**
* SolutionSpecial模型对象
* @var \app\common\model\SolutionSpecial
*/
protected $model = null;
public function _initialize()
{
... |
<?php
/**
* Indaco.php
*
* @package Providers
* @author Michael Pratt <pratt@hablarmierda.net>
* @link http://www.michael-pratt.com/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Embera\Providers;
/**
* The Indac... |
<?php
namespace CWM\BroadWorksConnector\Ocip\Models;
/**
* GroupCallCenterGetInstanceResponse14sp3
*
* Response to GroupCallCenterGetInstanceRequest14sp3.
* Contains the service profile information and a table of assigned users.
* The table has column headings: "User Id", "Last Name", "First Name... |
@include('shared.alert')
<div class="form-group">
{!! Form::label('title', 'Title:') !!}
{!! Form::text('title', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('content', 'Content:') !!}
{!! Form::textArea('content', null, ['class' => 'form-control']) !!}
</div>
<... |
@extends('layouts.app')
@section('title','Home Page')
@section('main_content')
<main>
<h3>Home Page</h3>
</main>
@endsection |
<?php
include("config/config.php");
?>
<!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">
<title>Welcome to Project Website</title>
<link rel="stylesheet" type="te... |
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<title>手机消息管理系统</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="/record_system/Public/Css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/record_system/Public/Css/bootstrap-responsive.css" />
... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\Crm\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for SaveMidocoSettlMDocRequest StructType
* @subpackage Structs
*/
class SaveMidocoSettlMDocRequest extends AbstractStructBase
{
/**
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\PageRequest;
use App\Models\Category;
use App\Models\Contact;
use App\Models\Page;
use Illuminate\Http\Request;
class PagesController extends Controller
{
public $page = null;
public function __const... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\ResourceBundle\Controller;
use PhpSpec\ObjectB... |
<?php
/**
* Autoload a facade
*
* @param string $class
*
* @return void
*/
function autoload($class) {
$hasNamespace = strstr($class, NS);
$facadeExists = false;
$namespace = null;
$location = null;
$file = null;
$category = null;
if($hasNamespace){
$explode = explode(NS, $clas... |
<?php
if(isset($_GET['examCatID']))
{
$examCatID = $_GET['examCatID'];
$criteriaId = $_GET['criteriaId'];
$classID = $_GET['classID'];
$stdID = $_GET['stdID'];
$examType = $_GET['examType'];
$classHeadID = $_GET['classHeadID'];
$startYear = $_GET['startYear'];
$endYear = $_GET['endYear... |
<?php
namespace OXI_IMAGE_HOVER_PLUGINS\Modules\Caption\Render;
if (!defined('ABSPATH')) {
exit;
}
use OXI_IMAGE_HOVER_PLUGINS\Page\Public_Render;
class Effects2 extends Public_Render {
public function public_css() {
wp_enqueue_style('oxi-image-hover-caption', OXI_IMAGE_HOVER_URL . '/Modules/Captio... |
<?php $__env->startSection('title', $row->title); ?>
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('Sites::inc.maketting', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="mains">
<div class="container">
<?php if(session()->... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\TwDocumentosCorporativos;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use App\Http\Resources\ProjectResource;
class TwDocumentosCorController extends Controller
{
/**
* Display a listing of the ... |
<?php
/*
* Copyright 2020 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* 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 re... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep t... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nuve</title>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="author" content="Equipo4"/>
<meta name="copyright" content="Todos lo... |
<?php
namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes();
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (file_exists(SYSTEMPATH . 'Config/Routes.php')) {
require SYSTEMPATH . 'Config/Routes.php';
}
/**
* --... |
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-offset-2 is-8">
<div class="box">
@if($object->image)
<img style="max-height: 300px" src="{!! $object->image !!}" alt="test"/>
... |
<?php
?>
@extends('layouts.app')
@section('title', 'edit product: '.$product->name)
@section('content')
<div class="container">
<form action="{{route('products.update', [$product])}}" method="POST" enctype="multipart/form-data">
@method('PATCH')
<div class="form-group">
... |
<?php
// use App\Http\Controllers\ContacController;
use App\Http\Controllers\AboutController;
use App\Http\Controllers\BlogController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\IndexController;
use Illuminate\Support\Facades\Route;
// use App\Http\C... |
<?php
namespace App\Models;
use Backpack\CRUD\CrudTrait;
use Illuminate\Database\Eloquent\Model;
class Income extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHorariosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('horarios', fun... |
@extends('layouts.app')
@section('title','Evidencija Studenata | Izmena korisnika '.$korisnik->ime)
@section('content')
<div class="container">
@if(url()->previous()==url('/login'))
<div class="row justify-content-center">
<div class='col-lg-6 col-md-6 col-sm-12'>
<div class="alert alert-s... |
<?php
declare(strict_types=1);
/**
* Limesharp_Stockists extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* that is bundled with this package in the file LICENSE
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/mit-license.php
*
... |
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Node\Expression\Binary;
use Twig\Compiler;
class NotInBinary extends AbstractBinary
{
public func... |
<?php
class Register extends CI_Controller {
// unused. from testing phase of development
public function do_register() {
$this->load->model('registered_user_accounts');
$this->form_validation->set_rules('name', 'Name', 'required');
$this->form_validation->set_rules('email', 'Email',... |
<?php
/**
* Laravel - A PHP Framework For Web Artisans.
*
* @author Taylor Otwell <taylor@laravel.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a ... |
<?php
namespace Laravel\ResetTransaction\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @method static mixed commit(string $transactId, array $transactRollback)
* @method static mixed rollback(string $transactId, array $transactRollback)
*
* @see \Laravel\ResetTransaction\Facades\TransactionCenter
*
*/
... |
@extends('layouts.app')
@section('content')
<!-- content -->
<div id="content" class="site-content">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="container">
<div class="row">
... |
<?php
/**
* Template Manager Class
*
* @since 1.1.0
*/
class WeForms_Template_Manager {
/**
* The templates
*
* @var array
*/
private $templates = array();
/**
* Get all the registered fields
*
* @return array
*/
public function get_templates() {
i... |
<?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
*... |
<?php
/**
* Redsys Pro
*
* @category Interactiv4
* @package Interactiv4_RedsysPro
* @copyright Copyright (c) 2015 Interactiv4 SL. (http://www.interactiv4.com)
* @author Oscar Salueña Martín <oscar.saluena@interactiv4.com> @osaluena
* @author David Slater
*/
class Interactiv4_RedsysPro_Model_... |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AssignedLicense File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright 2016 Microsoft Corporation
* @license https://ope... |
<?php
namespace App\Manager;
/**
* Class ForecastCalculator
* @package App\Manager
*/
class ForecastCalculator extends MainCalculator
{
/**
* @param int $year
* @return array
*/
public function getPersonalYearNumbers(int $year)
{
$personalYearNumber = $this->getBirthDate("day") +... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class IsAdmin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
... |
<?php
namespace App\Models;
use App\Models\Business;
use App\Models\Person;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Investment extends Model
{
use HasFactory;
protected $guarded = [];
public function business(){
return $this->belongsT... |
<?php
/**
* ALIPAY API: antfortune.equity.instpoint.prizeexchange.use request
*
* @author auto create
* @since 1.0, 2019-05-01 11:19:48
*/
namespace Alipay\Request;
class AntfortuneEquityInstpointPrizeexchangeUseRequest
{
/**
* 机构积分兑换奖品
**/
private $bizContent;
private $apiParas = array();
private $termi... |
<x-admin-master>
@section('content')
<h1>Roles</h1>
@if(session('role-success'))
<div class="alert alert-success">{{session('role-success')}}</div>
@elseif(session('role-delete'))
<div class="alert alert-danger">{{session('role-delete')}}</div>
@endif
... |
<?php
namespace Drupal\search_api\Plugin\views\query;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Database\Query\ConditionInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\Form... |
<?php
namespace PhpZip\Tests;
use PhpZip\Util\StringUtil;
use PhpZip\ZipFile;
/**
* Class ZipFileSetTestCase.
*/
abstract class ZipFileSetTestCase extends ZipTestCase
{
protected static $files = [
'.hidden' => 'Hidden file',
'text file.txt' => 'Text file',
'Текстовый документ.txt' => 'Т... |
<?
load::app('modules/ppo/controller');
class ppo_news_action extends ppo_controller
{
public function execute()
{
$this->group = ppo_peer::instance()->get_item(request::get_int('id'));
$this->list = ppo_news_peer::instance()->get_by_group($this->group['id']);
$this->pager = pager_helper::get_pager($this->lis... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as th... |
<?php
namespace Lar\JsonApi;
use response as KirbyResponse;
class JsonApiController
{
public function getPage($id)
{
$page = page($id);
if ($page === false)
return KirbyResponse::error('Page not found', 404, ['id' => $id]);
return JsonApiUtil::pageToJson($page);
}
public function getChildIds($id)
{
... |
<?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... |
<?php
namespace app\models;
use yii\db\ActiveRecord;
class Category extends ActiveRecord
{
public static function tableName()
{
return 'category';
}
public function getCat()
{
return $this->hasMany(CategoryProduct::class, ['category_id' => 'id']);
}
} |
<?php
session_start();
require 'headtag.php';
$activeuser5 = "active";
require 'menu.php';
include_once './dbconnect.php';
$upload = mysqli_num_rows(mysqli_query($con, "SELECT * FROM tbl_vtusers WHERE isActive=1"));
$active = (int) $upload;
$upload3 = mysqli_num_rows(mysqli_query($con, "SELECT * FROM tbl_vtusers WHER... |
<?php
namespace App\Models\Logs;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LoginFails extends Model
{
use HasFactory;
protected $fillable = ['user_name', 'fail_password', 'log_in_ip', 'log_in_device'];
} |
@extends('layouts.master')
@section('content')
<h1 class="banner1">All Orders</h1>
<div class="album py-5 contOpa rounded">
<form action="/orders/filter" method="post">
{{ csrf_field() }}
<label for="months">Filter by Month:</label>
<select name="months" id="cars"... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreTestRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get ... |
@php($method = isset($category->id) ? 'put' : 'post')
@php($route = isset($category->id) ? route('convenience-category.update', $category->id) : route('convenience-category.store'))
@php($index = route('convenience-category.index'))
{!! Form::model($category, ['url' => $route, 'method' => $method, 'id' => 'convenience... |
<?php
declare(strict_types=1);
namespace Rector\Tests\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class FinalizePublicClassConstantRectorTest extends AbstractRectorTestCase
{
/**
... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Overtrue\EasySms\EasySms;
class EasySmsServiceProvicer extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddUserIdToInternshipsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('interns... |
<!DOCTYPE html>
<html lang="{{Str::of(config('app.locale'))->replace('_', '-')}}">
@include('portal.backend.layouts.head')
<body>
<script type="text/javascript">
var baseurl = '{{route('portal.admin.home')}}'
</script>
@include('portal.backend.layouts.navbar')
<div class="page-content">
<div class="sidebar side... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.