text
stringlengths
2
1.03M
<?php namespace Home\Controller; use Think\Controller; class InfoController extends Controller { public function index(){ $this->display(); } }
<?php require_once dirname(__FILE__).'/class/base_classes.php'; /** * Class to access a templates resources from the create send API. * This class includes functions to create update and delete templates * @author tobyb * */ class CS_REST_Templates extends CS_REST_Wrapper_Base { /** * The base route of ...
@extends('layouts.app') @section('content') <h3>{{$title}}<h3> <p> This website was built using the framework Laravel 7.x. The purpose was to give me experience developing web applications using Laravel. It also gave me experience with deploying a web project to a web ...
<?php return [ /* |-------------------------------------------------------------------------- | Gross price as base price |-------------------------------------------------------------------------- | | This default value is used to select the method to calculate prices and taxes | If true ...
<?php namespace backend\models; use yii\db\ActiveRecord; class ArticleDetail extends ActiveRecord{ public function rules(){ return [ [['content'],'required'], ]; } public function attributeLabels(){ return [ 'content'=>'文章内容', ...
<?php namespace AppBundle\Repository; /** * SectorMesaRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class SectorMesaRepository extends \Doctrine\ORM\EntityRepository { }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
@extends('layouts.myApp') @section('content') <link rel="stylesheet" href="{{ asset('css/inStoreDogTraining.css') }}"> <style> .imgBanner{ width:100%!important; height:100%!important; } #services-in-store-training-video{ display:block!important; } #services-in-store-tra...
<?php declare(strict_types=1); namespace Recruiter\Infrastructure\Command\Bko; use Psr\Log\LoggerInterface; use Recruiter\Factory; use Recruiter\Infrastructure\Persistence\Mongodb\URI as MongoURI; use Recruiter\Scheduler\Repository as SchedulerRepository; use Symfony\Component\Console\Command\Command; use Symfony\Com...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAutomovelsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('automovels',...
<?php namespace backend\assets; use yii\web\AssetBundle; /** * Main backend application asset bundle. */ class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = [ 'css/site.css', ]; public $js = [ ]; public $depends = [ ...
<?php /** * Created by PhpStorm. * User: Isa * Date: 3/18/2017 * Time: 2:37 PM */ namespace App\Http\Requests; class ChangePasswordRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
<?php namespace Acme\Validators; class TaskValidator extends Validator{ protected static $rules = [ 'title' => 'required', 'body' => 'required', 'user_id' => 'required' ]; }
<nav class="active"> ul.list-unstyled </nav>
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Product; /** * ProductSearch represents the model behind the search form of `app\models\Product`. */ class ProductSearch extends Product { /** * @inheritdoc */ public function rules() { ...
<?php namespace App\Http\Controllers; use App\Bill; use App\Http\Controllers\Controller; use App\product; use DB; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Mail; class BillController extends Controller { /** * Display a listing of the resource. * * @return \Ill...
<?php use yii\helpers\Html; use yii\bootstrap4\ActiveForm; /** * @var yii\web\View $this * @var backend\models\TipoSolicitud $model * @var yii\bootstrap4\ActiveForm $form */ ?> <div class="tipo-solicitud-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAdvsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('advs', function (B...
<?php namespace App\Http\Controllers\Front; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\ExamResult; class ExamResultController extends Controller { public function entrance_exam() { $entrances = ExamResult::where('exam_type','E')->latest()->get(); ...
<?php /** * @copyright Copyright (c) Flipbox Digital Limited * @license https://github.com/flipbox/relay-salesforce/blob/master/LICENSE.md * @link https://github.com/flipbox/relay-salesforce */ namespace Flipbox\Relay\Salesforce\Middleware\Resource; use Flipbox\Relay\Salesforce\Middleware\Resource; /*...
<?php namespace Drupal\clashofclans_api; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use Kevinrob\GuzzleCache\CacheMiddleware; use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy; use Drupal\guzzle_cache\DrupalGuzzleCache; use GuzzleHttp\Exception\RequestException; use Drupal\Core\DependencyInjection\Contai...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; use App\Category; use App\Comment; class Product extends Model { function insertProduct($request) { $product = new Product(); if($request->hasFile('image')) ...
<?php namespace backend\models; /** * This is the ActiveQuery class for [[Subscription]]. * * @see Subscription */ class SubscriptionQuery extends \yii\db\ActiveQuery { /*public function active() { return $this->andWhere('[[status]]=1'); }*/ /** * @inheritdoc * @return Subscript...
<?php /** **** Dashboard functions */ /** * check if page slug exists * * @param $post_name * * @return bool */ function the_slug_exists($post_name) { global $wpdb; if($wpdb->get_row("SELECT post_name FROM wp_posts WHERE post_name = '" . $post_name . "'", 'ARRAY_A')) { return true; } else { return fals...
<div class="contenido"> <div class="form-group text-center"> <p><strong>Corte de Caja</strong></p> <p><strong>Cajero:</strong><?php echo getUsuario($caja->usuario_id)->nombres; ?></p> </div> <div class="form-group text-center"> <label for="">Quicheladas</label><br> 3a. Calle 1-06 Zona 1, 2do. Nivel Farma...
<?php namespace Swarrot\Broker\MessageProvider; use Stomp\Client; use Stomp\Exception\StompException; use Stomp\SimpleStomp; use Stomp\Transport\Message as StompMessage; use Swarrot\Broker\Message; class SimpleStompMessageProvider implements MessageProviderInterface { /** * @var Client */ private $...
@extends('_layout._ecommerce') @section('content') @include('_includes._ecommerce._carousel') <div class="row"> @if(isset($products)) @include('ecommerce._includes._products') @else <h1>No Products are available</h1> @endif </div><!-- /.row --> @endsection
@if(count($errors)>0) @foreach($errors->all() as $error) <div class="alert alert-danger"> {{$error}} </div> @endforeach @endif @if(session('success')) <div class="alert alert-success"> {{session('success')}} </div> @endif @if(session('error')) <div class="alert alert-danger"> {{session('error')}} </di...
<?php namespace App\Http\Livewire; use App\Models\Brand; use App\Models\Car; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Livewire\Component; use Livewire\WithFileUploads; class EditBrandDetails extends Component { use WithFileUploads; public $brand; public $edit_brand_light_im...
<?php namespace App\Http\Controllers; use App\Talep; use Illuminate\Http\Request; use App\Http\Requests; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Session; class YazarlikTalepController extends Controller { // public function __construct() { $this->middleware("auth"); }...
<?php /** * Sample file showing how to use PHPGamification */ namespace TiagoGouvea\PHPGamification; // Set enviroment use Exception; use TiagoGouvea\PHPGamification; use TiagoGouvea\PHPGamification\Model; use TiagoGouvea\PHPGamification\Model\Event; error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', 'On'...
<?php namespace NovaPoshta_example; class Test_example { public static function test() { } }
<?php /** * Contains \jamesiarmes\PhpEws\Type\ClientAccessTokenRequestType. */ namespace jamesiarmes\PhpEws\Type; use jamesiarmes\PhpEws\Type; /** * Defines a single token request. * * @package php-ews\Type */ class ClientAccessTokenRequestType extends Type { /** * Specifies the identifier of an app. ...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/2/26 * Time: 13:10 */ namespace app\index2020\model; use think\Model; class Moneychange extends Common { protected $table = 'money_change'; public function member() { return $this->belongsTo('member', 'member_id', 'member_i...
<?php namespace App\Http\Controllers; use App\Role; use App\RolesUser; use App\User; use Illuminate\Http\Request; class UserController extends Controller { public function __construct() { // Se pasa como parametro el string admin al middleware roles, registrado en Kernel $this->middleware(['a...
<?php use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); }); Auth::routes(); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Route::resource('channels', App\Http\Controllers\ChannelController::class); // Route::mediaLibrary();
<?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 | ...
@extends('dashboard.master') @section('content') <div class="row"> <div class="container"> <div class="row"> <div class="col-lg-12"> <h2>Create Address</h2> </div> </div> <div class="row justify-content-center"> <div class="col-lg-6"> ...
@extends('layouts.admin-app') @section('content') <ul class="breadcrumb"> <li> <i class="icon-home"></i> <a href="index.html">Home</a> <i class="icon-angle-right"></i> </li> <li> <i class="icon-edit"></i> <a href="#">Forms</a> </li> </ul> <div class="row-...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateHistoryTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('history', function (Blueprint $table) { $tabl...
<?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 namespace Ekyna\Component\Commerce\Newsletter\Entity; use Ekyna\Component\Commerce\Newsletter\Model\AudienceInterface; use Ekyna\Component\Commerce\Newsletter\Model\MemberInterface; use Ekyna\Component\Commerce\Newsletter\Model\SubscriptionInterface; use Ekyna\Component\Commerce\Newsletter\Model\SubscriptionSta...
@extends('admin.layout.base') @section('body') <!-- Main content --> <section class="content-header"> <a href="{{ route('admin.time.table.manual.outo.generate') }}" class="btn btn-info pull-right" title="">Outo Generate</a> <h1>Manual Time Table<small>View</small> </h1> </section> <sectio...
<?php /** * SilverWare Slider configuration file. * * PHP version >=5.6.0 * * For full copyright and license information, please view the * LICENSE.md file that was distributed with this source code. * * @package SilverWare\Slider * @author Colin Tucker <colin@praxis.net.au> * @copyright 2017 Praxis Interact...
<?php namespace app\common\task; use app\common\lib\Transfer; use think\Log; class LoginTask { protected static $model = 'app\common\model\LoginTask'; /** * 根据主键ID 获取数据 * $id int 1 * */ public static function get($id) { $model = (self::$model)::get($id); if ($model ===...
<?php /* * * Title : add_new_task.php * * Prosthetei stin database ston pinaka tbl_tasks kai * tbl_description */ include './db_config/db_connect.php'; $db = new DbMgmt(); $db->runQuery("SET NAMES 'utf8'"); $subject = $db->quote($_POST['subject']); $user_id = $db->quote($_POST['user_id']); $user_reg = $db...
<?php namespace App\Entities; use App\User; use App\VotableTrait; use Illuminate\Database\Eloquent\Model; class Answer extends Model { use VotableTrait; protected $guarded = []; protected $appends = ['created_date', 'body_html', 'is_best']; public function question(){ return $this->belongs...
<?php /* * Copyright 2014 Google Inc. * * 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 t...
<?php /** * Featured groups * * @package ElggGroups */ $featured_groups = elgg_get_entities_from_metadata(array( 'metadata_name' => 'featured_group', 'metadata_value' => 'yes', 'type' => 'group', )); if ($featured_groups) { elgg_push_context('widgets'); $body = ''; foreach ($featured_groups as $group) { ...
<!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>Data Tables</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="{{ asset('vendor/bootstrap/css/bootstr...
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="block-header"> <h2>ARTIKEL</h2> </div> <p>KOSONGAN</p> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('dashboard.dashlayout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['_...
<?php namespace app\index\controller; use think\Db; use think\Controller; use think\Request; use think\exception\DbException; class Index extends Controller { public function index() { return view(); } public function swtImport() { if (request()->isPost()) { $file = r...
@extends('user.layouts.default') @section('content') <section> <div class="max-w-screen-xl mx-auto p-4" > @if(session()->has('status')) <p>{{ session()->get('status') }}</p> @endif <div class="pb-4"> <form action=""> <input type="text" id="searchProduct" ...
<?php namespace App\Jobs; use App\ProxyFile; use DB; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; class UpdateProxyFile implements ShouldQueue { use Dispatchabl...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- TITLE --> <title>ПГЕЕ - гр. Пловдив</title> <!-- DISCRIPTION --> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="...
@extends('layout.main') @section('title', 'ubah data karyawan') @section('content') <div class="container mt-5 mb-5"> @foreach ($dataKaryawan as $dKyn) <form method="POST" action="/data_karyawan/{{ $dKyn->id }}"> @method('patch') @csrf <div class="form-group"> <label f...
<?php namespace Resque; /** * Resque exception. * * @package Resque * @author Chris Boulton <chris@bigcommerce.com> * @license http://www.opensource.org/licenses/mit-license.php */ class Exception extends \Exception { }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Institution extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'state_id', 'institution_type_id', 'name', ]; public functi...
<?php use App\Http\Controllers\ContactController; use App\Http\Controllers\ContactEntryController; use App\Http\Controllers\MeController; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\UserController; use App\Http\Controllers\AuthController; /* |----------------------------...
<?php namespace App\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bo...
<?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 lliyplliuk\eBaySDK\Test\Trading\Types; use lliyplliuk\eBaySDK\Trading\Types\SellerFavoriteItemPreferen...
<?php /** * */ class Login extends CI_Controller { function index() { $data = array( 'alert' => $this->session->alert); $this->load->view('view_login', $data); } function aksi_login() { $uname = $this->input->post('username'); $upass = $this->input->post('password'); if ($this-...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Club */ $this->title = 'Create Club'; $this->params['breadcrumbs'][] = ['label' => 'Clubs', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="club-create"> <h1><?= Html::encode($this->title) ...
<?php use common\helpers\Html; use common\enums\StatusEnum; ?> <div class="form-group"> <?= Html::label($row['title'], $row['name'], ['class' => 'control-label demo']);?> <?php if($row['is_hide_remark'] != StatusEnum::ENABLED){ ?> (<?= $row['remark']?>) <?php } ?> <?= Html::input('text', 'confi...
<?php $lang["giftcards_add_minus"] = "Inventory to add or subtract."; $lang["giftcards_allow_alt_description"] = "Allow Alternate Description"; $lang["giftcards_bulk_edit"] = "Bulk Edit"; $lang["giftcards_cannot_be_deleted"] = "Could not delete selected Gift Card(s), one or more of the selected Gift Cards has sales."...
{"filter":false,"title":"Request.php","tooltip":"/vendor/laravel/framework/src/Illuminate/Http/Request.php","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":12477,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTab...
<?php return [ '@class' => 'Grav\\Common\\File\\CompiledYamlFile', 'filename' => '/var/www/html/grav/user/plugins/admin/languages/he.yaml', 'modified' => 1609634251, 'data' => [ 'PLUGIN_ADMIN' => [ 'ADMIN_BETA_MSG' => 'זוהי מהדורת ביתא! השימוש על אחריותכם בלבד...', 'ADMIN...
<?php /** * Created by PhpStorm. * User: bg * Date: 07.02.17 * Time: 20:01 */ namespace Conpago\Cli\Templates\Twig; use Conpago\Cli\CaseConverter\CaseConverter; use PHPUnit_Framework_MockObject_MockObject as MockObject; use Conpago\File\Contract\IPathBuilder; class Tw...
<style> .required { color: red; } </style> <?php include('includes/header.php'); ?>// get header <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12"> <?php ...
<?php /** * SelfServiceVerificationFlowState * * PHP version 7.3 * * @category Class * @package Ory\Kratos\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Ory Kratos API * * Documentation for all public and administrative Ory Kratos APIs. Public and administra...
<?php namespace Application\Models\Newsletter; use Application\libs\General; use Application\Mail\MailGeneral; use Application\Models\DataMapper; class NewsletterCollection { protected $controller = null; public function __construct($controller) { /** @var $controller \Application\Controller\MyA...
<?php /* * This file is part of the iomywiab-php-constraints package. * * Copyright (c) 2012-2021 Patrick Nehls <iomywiab@premium-postfach.de>, Tornesch, Germany. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * File name....: IsI...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product', function(Blueprint $table) { ...
<?php namespace Pi\Snippets\Types\StaticType\User\Building\Room; use Pi\Auth\User; use Pi\Snippets\Interfaces\SnippetInterface; use Pi\Snippets\Types\Snippet; class EmergencyRouteSnippet extends Snippet implements SnippetInterface { /** * @var User */ public $user; /** * @var User */...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code class kraken extends Exchange { public function describe () { return array_replace_recursive (parent::describe (), array ( ...
@extends('layouts.app') @section('metas') <meta name="csrf-token" content="{{ csrf_token() }}" /> @endsection @section('menu-options') <ul class="nav navbar-nav"> <li><a href="{{ url('/') }}"><span class="glyphicon glyphicon-info-sign"></span> Datos de la empresa</a></li> <li><a href="{{ url('...
<?php $this->load->view('layout/headerA'); ?> <!-- CSS PLUGINS START --> <!-- Sweet Alert --> <link href="<?=base_url()?>assets/plugins/sweet-alert2/sweetalert2.min.css" rel="stylesheet" type="text/css"> <!-- CSS PLUGINS END --> <?php $this->load->view('layout/headerB'); ?> <?php $this->load->view('layout/navbar')...
<title>Catálogo: Deducible</title> <h1 class="text-center">Catálogo de deducibles</h1> <div class="col-lg-12 table-responsive tablas_catalogos"> <table class="table table-bordered text-left" id="catalogeDeductibleTable"> <thead class="thead-dark"> <tr> <th style=...
<?php namespace App\Http\Controllers; use App\Models\Post; use App\Models\Profile; use App\Models\Likes; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Auth; class PostController extends Controller { /** * Display a listing of the resour...
<?php namespace App\Http\Controllers; use App\Http\Requests\SurveyRequest; use App\Mail\RequestReceived; use App\Survey; use App\Location; use App\District; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; use Maatwebsite\Excel\Facades\Excel; use Spatie\Fractal\FractalFacade\Fractal; use App\Transfor...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateEvents extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('events', function($deerfieldEvents) { $deerfield...
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
@extends('front.layouts.master') @section('title',$category->name. ' Kategorisi | '.count($articles). ' yazı bulundu.') @section('content') <div class="col-md-9 bg-light"> @include('front.widgets.articleListWidget') </div> @include('front.widgets.categoryWidget') @endsection
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class LogDataExternal extends CompModel { protected $table = 'log_data_external'; static function cekData() { try { $data = LogDataExternal::where('date', date('Y-m-d'))->where('leader_board', 1)->first(); $up...
@extends('a.template') @section('head') {!! HTML::style('ckeditor/plugins/codesnippet/lib/highlight/styles/default.css') !!} <link href="/a/vendors/bower_components/chosen/chosen.min.css" rel="stylesheet"> <style> .choselect + .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before { ...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTableHobiSiswa extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('hobi_siswa', function (Blueprint $table) { ...
<?php declare(strict_types=1); namespace Stratadox\HydrationMapping\Test\Double\Foo; final class Bar { /** @var Foo */ private $foo; public function integer(): int { return $this->foo->integer(); } public function string(): string { return $this->foo->string(); } ...
<?php /** * This file is part of the Juvem package. * * (c) Erik Theoboldt <erik@theoboldt.eu> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AppBundle\Entity\ChangeTracking; interface SupportsChangeTrackingInterface...
<?php namespace Illuminate\Queue; use ReflectionClass; use ReflectionProperty; trait SerializesModels { use SerializesAndRestoresModelIdentifiers; /** * Prepare the instance for serialization. * * @return array */ public function __sleep() { $properties = (new ReflectionC...
<?php /* * This file is part of Twig. * * (c) 2009 Fabien Potencier * (c) 2009 Armin Ronacher * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Compiles a node to PHP code. * * @author Fabien Potencier <fabien@symfony.com...
@extends('layouts.app') @section('title') Create Subcategory @endsection @section('content') <div class="container py-4"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="inline-block d-flex align-items-center justify-content-betw...
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
<?php namespace CRH\WebBundle\Repository; use Doctrine\ORM\EntityRepository; /** * POI_TYPERepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class POI_TYPERepository extends EntityRepository { }
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model c006\products\models\PriceTier */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Price Tiers'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this-...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('orders', functio...
@extends('layouts.backend.app') @section('title','Add Mark') @push('css') @endpush @section('content') <div class="container-fluid"> <!-- Vertical Layout | With Floating Label --> <div class="row clearfix"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div cl...
<?php class Config_model extends CI_Model { private $table; function __construct() { parent::__construct(); $this->table = 'tbl_config'; } public function get_list(){ $data = array(); $this->db->cache_on(); $this->db->select('*'); $query =...
<?php namespace Laboratorio; use Illuminate\Database\Eloquent\Model; class Empresa extends Model { protected $table = "sucursales"; public $timestamps = false; protected $primaryKey = 'IdSucursal'; protected $fillable = ['Codigo','Nombre','Telefono','Direccion','IdMunicipio','AnoApertura','Estado']; ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMenusTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('menuses', functio...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Cupon extends Model { protected $fillable = ['code','start_date','end_date','discount_type','amount','status']; public function orders() { return $this->hasMany(Order::class); } }