text
stringlengths
2
1.03M
<?php namespace Twig\Node; use Twig\Compiler; use Twig\Node\Expression\AbstractExpression; use Twig\Node\Expression\AssignNameExpression; /** @author */ class ForNode extends Node { private $loop; public function __construct(AssignNameExpression $keyTarget, AssignNameExpression $valueTarget, AbstractExp...
<?php require_once("../../includes/config.JTL-Shop.ini.php"); require_once(PFAD_ROOT . "includes/" . "defines.php"); //existiert Konfiguration? if (!defined('DB_HOST')) { die("Kein MySql-Datenbank Host angegeben. Bitte config.JTL-Shop.ini.php bearbeiten!"); } if (!defined('DB_NAME')) { ...
@extends('layouts.admin') @section('contents') <aside class="right-side"> <div class="row" style="margin-top: 10px"> <div class="col-md-6"> @if($flash = session('error')) <script> swal({ title: "You can only upload once, please contact you...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class EstructuraDetalle extends Model { protected $table = 'estructura_detalle'; protected $fillable = ['idestructura', 'idcategoria']; public $timestamps = false; /** * Atributos Categoria */ public function getCategoriaAttribute...
<?php /** * Container for the current status of OpCache * * PHP version 5.5 * * @category OpCacheGUI * @package OpCache * @author Pieter Hordijk <info@pieterhordijk.com> * @copyright Copyright (c) 2013 Pieter Hordijk <https://github.com/PeeHaa> * @license http://www.opensource.org/licenses/mit-lic...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model frontend\models\Wallets */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Wallets', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>...
<?php /* type: layout name: Head image position: 1 */ ?> <div class="nodrop edit safe-mode" field="layout-skin-1-<?php print $params['id'] ?>" rel="module"> <div class="head-image-layout-2"> <div class="mw-image-holder nk-header-title nk-header-title-full"> <img src="<?php print template_...
@if (isset($errors) and $errors->any()) <div class="col-lg-12"> <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <h5><strong>{{ t('Oops ! An error has occurred. Please correct the red fields in the form') }}...
<?php namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = User::class; /** ...
<?php /** * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) 2020 Juan Pablo Ramirez and Nicolas Masson * @link https://webrider.de/ * @since ...
<?php if (!defined('ABSPATH')) { exit; } require_once payright_plugin_path() . '/woocommerce/includes/config.php'; class Payright_Call { public $payright_access_token; public $payright_refresh_token; public $rates; public $conf; public $establishment_fees_array; public $rdata; p...
<?php namespace App\Http\Requests\Systems; use Illuminate\Foundation\Http\FormRequest; class BranchCreateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class AccountType extends Model { protected $fillable = [ "type", ]; protected $hidden = [ ]; protected $dates = [ "created_at", "updated_at", ]; pr...
@if(Session::has('message-error')) <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times; </span> </button> {{Session::get('message-error')}} </d...
@extends('layouts.dashboard') @section('title') Storage settings - @endsection @section('pageTitle') Storage settings @endsection @section('content') <div class="container"> <div class="row"> <div class="col"> <form action="{{ route('storageStore') }}" method="POST"> ...
<?php /** * BuddyPress Blogs Activity. * * @package BuddyPress * @subpackage BlogsActivity * @since 1.5.0 */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** * Register activity actions for the blogs component. * * @since 1.0.0 * * @return bool|null Returns false if activity component is not...
@extends('layouts.app') @section('content') <section class="content-header"> <h1> Bot Allowed Sites </h1> </section> <div class="content"> <div class="box box-primary"> <div class="box-body"> <div class="row" style="padding-left: 20px"> ...
{{--<div class="well"> <h4 >编辑资料</h4> </div>--}} {{--<h3 class="header smaller lighter blue mg-top12 mg-bottom20">编辑资料</h3>--}} <style> .ace-file-multiple .ace-file-container { /*position: relative;*/ /*height: 160px;*/ /*width: 320px;*/ /*border: 1px dashed #aaa;*/ /*border-radius: 4px;*/ /*text-align: c...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\assets; use yii\web\AssetBundle; use yii\web\View; /** * Main application asset bundle. * * @author Qiang Xue <qiang.xue@gmail.com> * @since ...
<?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('main') @section('title', '| Edit question') @section('stylesheets') {!! Html::style('css/select2.min.css') !!} <script src="{{ URL::to('src/js/vendor/tinymce/js/tinymce/tinymce.min.js') }}"></script> <script> var editor_config = { height : "120", path_absolute : "...
<?php /** * class User */ class User extends MY_controller { function __construct() { parent::__construct(); $this->load->library('session'); } function logout(){ $this->session->sess_destroy(); return redirect($_SERVER['HTTP_REFERER']); } } ?>
<?php class m_user extends CI_Model { public function tampilassignment($ac_type, $resp) { $id_user = $this->session->userdata('id_user'); // $query = $this->db->query(" SELECT eta.ms_num, eta.ac_type, md.task_code, md.rvcd, md.resp, // SUBSTRING_INDEX(GROUP_CONCAT(CAST(status AS CHAR) ORDER BY etp.cre...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2017, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of...
<?php namespace HaydenPierce\ClassFinder\PSR4; use HaydenPierce\ClassFinder\AppConfig; use HaydenPierce\ClassFinder\Exception\ClassFinderException; class PSR4NamespaceFactory { /** @var AppConfig */ private $appConfig; public function __construct(AppConfig $appConfig) { $this->appConfig = $a...
@extends('layouts.app') @section('title','RESET PASSWORD') @section('content') <section class="py-5 bg-light"> <div class="container"> <div class="row px-4 px-lg-5 py-lg-4 align-items-center"> <div class="col-lg-6"> <h1 class="h2 text-uppercase mb-0">{{ __('Reset Password') }}<...
<?php declare(strict_types=1); /* * This file is part of the ekino Drupal Debug project. * * (c) ekino * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ekino\Drupal\Debug\Action\EnableTwigStrictVariables; use Ekino\Dru...
<link href="<?php echo base_url('resources/plugins/select/css/bootstrap-select.min.css');?>" rel="stylesheet" > <link href="<?php echo base_url('resources/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css');?>" rel="stylesheet" > <form> <div class="modal-header"> <button type="button" class="close" data-di...
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet...
<?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 DTS\eBaySDK\Test\MerchantData\Types; use DTS\eBaySDK\MerchantData\Types\SellereBayPaymentProcessConsen...
<?php declare(strict_types=1); namespace Pggns\MidocoApi\OrderSD\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for UseCcProxySingleUseTokenRequest StructType * @subpackage Structs */ class UseCcProxySingleUseTokenRequest extends AbstractStructBase...
@extends('layouts.admin') @section ('content') <div class="container"> <div class="admin"> <h1>Tipos de proyecto</h1> </div> @if($errors->all()) <div class="alert alert-danger"> @foreach ($errors->all() as $error) <li>{{$error}}</li> @endforeach </div> @endif @foreach ($tipos as $tipo) ...
@if (Session::has('info')) <div class="alert alert-info" role="alert"> <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a> {!! Session::get('info') !!} </div> @endif @if (Session::has('success')) <div class="alert alert-success" role="alert"> <a href="#" class="close" data-dismiss...
<?php /* Plugin Name: WOW Slider Description: This module easily adds image sliders created with WOWSlider app. Author: WOWSlider.com Version: 8.6 Author URI: http://wowslider.com/ */ // template tag function wowslider($id = 0, $write = true){ if (is_array($id)){ // shortcodes $write = false; if ...
<div class="form-group"> <label for="accept_value" class="col-sm-2 control-label" >Accept value</label> <div class="col-sm-10"> <select class="form-control" name="accept_value" id="accept_value" onchange="for_single_maxlength();" required> <option selected="selected" value="" di...
<?php class Purchase_model extends MY_Model { protected $_table_name = ''; protected $_primary_key = 'id'; protected $_primary_filter = 'intval'; protected $_order_by = ''; public $rules = array(); protected $_timestamps = FALSE; function __construct() { parent::__construct(); ...
<?php return [ 'home' => 'Home', 'user_profile' => 'User Profile', 'dashboard' => 'Dashboard', 'users' => 'Users', 'users_management' => 'Users management', 'permissions' => 'Permissions', 'users_role' => 'Roles', 'users_sector' => 'Sectors', 'location' => 'Location', 'c...
<?php $listeners = array( 'after_default_pages_load' => array() ); function create_event($name) { global $listeners; $listeners[$event] = array(); } function add_event($event_name, $callback) { global $listeners; array_push($listeners[$event_name], $callback); } function trigger_event($event_name, $data = null)...
@if(session('success')) <div> <span class="alert alert-success">{{session('success')}}</span> </div> @endif @if(session('delete')) <div> <span class="alert alert-danger">{{session('delete')}}</span> </div> @endif
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Portfolio extends Model { protected $fillable = [ 'name', 'slug', 'category_id','sub_category_id', 'directory', 'content' ]; protected $hidden = [ ]; public function display() { return $this->belongsTo(Galle...
@extends('layouts.master') @section('title') <title>{{ $lesson->name }} Lesson</title> @endsection @section('content') <ol class='breadcrumb'> <li><a href='/'>Home</a></li> <li><a href='/lesson'>lesson</a></li> <li><a href='/lesson/{{ $lesson->id }}'>{{ $lesson->name }}</a></li> ...
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "cities". * * @property int $id * @property int $state_id * @property int $code * @property string $name * @property string $status * @property int $created_at * @property int $updated_at */...
<?php include('config.php'); $margin=$_POST['updateddata']; $update=mysqli_query($conn,"UPDATE ex_margin SET `margin`='$margin' WHERE id='1'"); ?>
<?php /** * This file is part of the TelegramBot package. * * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Longman\TelegramBot\Commands\SystemCommands; use Lo...
<a href="{{ route('prefacturaoxy.edit',$id)}}" class="btn btn-default" title="prefactura" ><i class="fa fa-plus" aria-hidden="true">Prefactura</i></a> <br><br> <a href="{{ route('ordenesdeservicio.edit',$id) }}" class="btn btn-success" title="Programar" onclick="return confirm('Va a ingresar a programar.');"><i class...
<?php require '../../vendor/autoload.php'; $config = json_decode(file_get_contents("config/config.json"), true); $config['root'] = __DIR__; $app = new \Slim\App([ 'settings' => $config ]); require '../../core/dependencies.php'; // Routes // ============================================================= $app->get('/v...
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="ONGC Trusts Portal"> <meta name="keywords" content="Laravel,PHP,ONGC,Trust,Infocom"> <!-...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Goals extends Model { public $fillable = [ 'ID', 'store_id', 'name', 'value', ]; }
<?hh // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. final class EN { use TR; final private function asEN(): EN { return $this; } public function doit(): bool { return true; } } trait TR { final public function foo(): bool { if ($this is EN) { $note = $this->asEN(); ...
@component('mail::message') # Introduction The body of your message. @component('mail::button', ['url' => route('activate', ['token' => $user->activation_token, 'email' => $user->email])]) Verify @endcomponent Thanks,<br> {{ config('app.name') }} @endcomponent
<?php require_once "config.php"; include "dbcon.php"; if (isset($_SESSION['access_token'])) $gClient->setAccessToken($_SESSION['access_token']); else if (isset($_GET['code'])) { $token = $gClient->fetchAccessTokenWithAuthCode($_GET['code']); $_SESSION['access_token'] = $token; } else { heade...
<?php namespace app\modules\url\models; use app\modules\textpage\models\Textpage; use backend\components\Transliteration; use Yii; /** * This is the model class for table "url". * * @property integer $id * @property string $href * @property string $real_canonical * @property string $title * @property strin...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Patient; use App\Http\Requests\PatientRequest; use App\Traits\ClientProcesser; use Exception; use Session; use DB; class PatientController extends Controller { use ClientProcesser; /** * Display a listing of the resource....
@extends(getTheme('layouts.page')) @section('content') <div class="big-hero page-hero-section"> <img src="{{ asset('po-content/uploads/404.svg') }}" alt="404" class="page-img w-full h-inherit object-center object-cover"> <div class="page-hero flex justify-center items-center h-inherit absolute top-...
<?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 */ protected $middleware =...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Sambungan extends Model { use HasFactory; protected $fillable = [ 'nomor_pelanggan', 'id_cabang', 'jenis_member', 'nama_alat', 'kondisi_ala...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class MY_Controller extends CI_Controller { public function __construct() { parent::__construct(); } } class Web_Controller extends MY_Controller { public function __construct() { parent::__construct(); //$this...
<?php namespace ConnectHolland\TulipAPI\Test; use ConnectHolland\TulipAPI\ResponseParser; use PHPUnit_Framework_TestCase; use Psr\Http\Message\ResponseInterface; /** * ResponseParserTest. * * @author Niels Nijens <niels@connectholland.nl> */ class ResponseParserTest extends PHPUnit_Framework_TestCase { /** ...
<?php use Components\Paginator; use Helpers\HubspotClientHelper; use HubSpot\Client\Crm\Contacts\Model\BatchReadInputSimplePublicObjectId; use HubSpot\Client\Crm\Contacts\Model\SimplePublicObjectId; use Repositories\EventsRepository; function formatEvent($event) { // "contact.creation" => "creation" $event['e...
<?php namespace app\controllers; use Yii; use app\models\Mahasiswa; use app\models\MahasiswaSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * MahasiswaController implements the CRUD actions for Mahasiswa model. */ class MahasiswaController extends Controller { ...
<?php include 'include/header.php';?> <body> <div class="container"> <div class="row"> <div class="forgot-password"> <div class="col-md-4"></div> <div class="col-md-4"> <center><img src="images/forgot-password.png" alt="" class="img-responsive"></center> <h3>Forgot yo...
@extends('layout') @section('content') @include('elements.tc_sidebar') <div class="tc-index"> <div class="tc-main"> <div class="tc-title-top"> <p> <span>プロフィール</span> </p> </div> <div class="tc-prof-box"> <table class="tc-prof-table"> <tr> <th class="tc-prof-item-title"></th> <th c...
<?php use App\Helpers\Url; ?> <h2 class="headline text-yellow"> 403</h2> <div class="error-content"> <h3><i class="fa fa-warning text-yellow"></i> Упс! У вас недостаточно прав.</h3> <p> У вас недостаточно прав для посещения страницы, которую вы запрашивали. Вы можете <a href="<?= Url::toRout...
<?php //use \yii\bootstrap\Modal; //use kartik\social\FacebookPlugin; //use \yii\bootstrap\Collapse; //use \yii\bootstrap\Alert; //use \yii\helpers\Html; /* @var $this yii\web\View */ $this->title = 'TMA Project Manager'; ?> <div class="site-index"> <div class="jumbotron"> <br /> <br /> <...
<?php use Inertia\Inertia; use Illuminate\Support\Facades\Route; use App\Http\Controllers\popupRedirect; use App\Http\Controllers\CardController; use App\Http\Controllers\User\UserController; use App\Http\Controllers\Admin\AdminController; use App\Http\Controllers\User\EmailChangeController; use Laravel\Fortify\Http\C...
<?php declare(strict_types=1); namespace UCRM\Data\Models; use MVQN\Data\Models\Model; use MVQN\Data\Annotations\TableNameAnnotation as TableName; use MVQN\Data\Annotations\ColumnNameAnnotation as ColumnName; /** * Class Plugin * * @package UCRM\UNMS * @author Ryan Spaeth <rspaeth@mvqn.net> * @final * * @Tabl...
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Voting * @package App\Models * @version August 8, 2018, 3:34 pm UTC * * @property integer user_id * @property integer nomination_id * @property integer category_id */ class Voting extends Model { ...
<?php /** * Single Event Template * A single event. This displays the event title, description, meta, and * optionally, the Google map for the event. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php * * @package TribeEventsCalendar * */ if ( ! defin...
<div class="container"> <div class="jumbotron"> <h1 class="display-4">Hello, world!</h1> <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> <hr class="my-4"> ...
<?php namespace App\Http\Controllers\Admin; use App\Post; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Str; use Illuminate\Support\Facades\Storage; use App\Mail\NewPost; use Illuminate\Support\Facades\Mail; class PostController extends ...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNotesheetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notesheets', function(Blueprint $table) { $table->increments('id'); $...
@extends('layouts.app') @section('content') <section class="content-header"> <h1> E3Aulac2M2 </h1> </section> <div class="content"> @include('adminlte-templates::common.errors') <div class="box box-primary"> <div class="box-body"> <div class...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', fun...
@if (Auth::user()->is_favoriting($user->id)) {!! Form::open(['route' => ['user.unfavorite', $user->id], 'method' => 'delete']) !!} {!! Form::submit('UnFavorite', ['class' => "btn btn-warning btn-xs"]) !!} {!! Form::close() !!} @else {!! Form::open(['route' => ['user.favorite', $u...
<?php /** * @see https://github.com/laminas/laminas-oauth for the canonical source repository * @copyright https://github.com/laminas/laminas-oauth/blob/master/COPYRIGHT.md * @license https://github.com/laminas/laminas-oauth/blob/master/LICENSE.md New BSD License */ namespace Laminas\OAuth\Config; use La...
<nav class="container-fluid navbar-fixed-bottom text-center"> <small>Copyright (C) 2015-2015 kimiya.aso All Rights Reserved.</small> </nav>
<?php $__env->startSection('content'); ?><p>His wedding to Katy Perry is on hold due to the ongoing coronavirus pandemic.</p> <p>But Orlando Bloom was already preparing to merge his family on Tuesday as he met up with Katy's father Keith Hudson in Los Angeles.</p> <p>The 43-year-old Pirates Of The Caribbean star drov...
<?php namespace RectorPrefix20210608; if (\class_exists('t3lib_pageSelect_getPageOverlayHook')) { return; } class t3lib_pageSelect_getPageOverlayHook { } \class_alias('t3lib_pageSelect_getPageOverlayHook', 't3lib_pageSelect_getPageOverlayHook', \false);
@extends('layouts.app') @section('content') @php /** @var \App\Models\BlogCategory $item */ @endphp @if($item->exists) <form method="POST" action="{{route('blog.admin.categories.update', $item->id)}}"> @method('PATCH') @else <form method="POST" action="{{route('blog.admin.categories....
<?php return [ /* |-------------------------------------------------------------------------- | Open Payroll Seeder Data |-------------------------------------------------------------------------- | | These values is the default for the references data which refer to | deduction types, ear...
<?php /* * This file is part of the league/commonmark package. * * (c) Colin O'Dell <colinodell@gmail.com> * * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js) * - (c) John MacFarlane * * For the full copyright and license information, please view the LICENSE * file...
<div class="list-group"> @foreach(App\Models\Category::where('parent_id',NULL)->orderBy('id','desc')->get() as $category) <a href="#category-{{ $category->id }}" class="list-group-item list-group-item-action" data-toggle="collapse"> <img src="/images/categories/{{ $category->image }}" width="50" height...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- font awsem --> <link rel="stylesheet" href="{{asset('front/css/all.min.css')}}"> <!-- Bootstrab --> ...
<?php namespace Mkk\SiteBundle\Command; use Mkk\SiteBundle\Command\Init\NafTrait; use Mkk\SiteBundle\Lib\ContainerAwareCommandLib; use Symfony\Component\Console\Descriptor\ApplicationDescription; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class InitEntit...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class video extends Model { use HasFactory; protected $table = 'video'; protected $fillable = ['name','viewers']; public $timestamps = false; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Language extends Model { use HasFactory; protected $table = 'languages'; protected $fillable = [ 'id', 'language_code', 'language_name', 'statu...
<?php /** * LaFa - A Laravel Fast Development Framework For Web Artisans * * @author mofei <root@mofei.org> * @link https://github.com/imofei/lafa * @date 2018-04-01 23:18 */ namespace App\Policies; use App\Models\User; use App\Models\Link; /** * 链接授权策略 * * Class LinkPolicy * @package App\Policie...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Users extends CI_Controller { public function __construct() { parent::__construct(); $users = $this->session->get_userdata(); if(empty($users['email'])) redirect('authentication/index'); } public function index() { $thi...
<?php namespace Google\AdsApi\AdWords\v201708\cm; /** * This file was generated from WSDL. DO NOT EDIT. */ class CustomerFeedReturnValue extends \Google\AdsApi\AdWords\v201708\cm\ListReturnValue { /** * @var \Google\AdsApi\AdWords\v201708\cm\CustomerFeed[] $value */ protected $value = null; ...
<?php declare(strict_types=1); namespace CIO\Entity\Customer; use CIO\Entity\EntityInterface; use CIO\Exception\InvalidEmail; class Customer implements EntityInterface { /** * @var \CIO\Entity\Customer\Identifier */ private $identifier; /** * @var string|null */ private $email; ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateJawabanSubtes2sTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('jawaban...
<?php namespace Tingo\ews\API\Type; /** * Class representing IsNotEqualTo */ class IsNotEqualTo extends IsNotEqualToType { }
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<?php declare (strict_types=1); namespace RectorPrefix20211030\Symplify\SimplePhpDocParser\PhpDocNodeVisitor; use PHPStan\PhpDocParser\Ast\Node; use RectorPrefix20211030\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface; /** * Inspired by https://github.com/nikic/PHP-Parser/blob/master/lib/PhpParser/No...
@if(count($orders->where('transaction_status', 2)->where('payment_status', 2)) > 0) <!-- Start Ada Pesanan --> @foreach($orders->where('transaction_status', 2)->where('payment_status', 2) as $order_process) <div class="pt-list-order"> <div class="grid_layouts head-pt-list-order"> <div class="bx-head-mns cod...
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Option; use PredisTestCase; /** * @todo We should test the ...
<?php include "config.php"; $sql = "SELECT * FROM Data.requestedApps ORDER BY createdAt"; $result = $connect->query($sql); if ($result->num_rows > 0) { // output data of each row while ($row = $result->fetch_assoc()) { echo '<!-- list element --> <li class="...
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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 // (at your option) any later version. // // Moodle ...
<?php require 'vendor/autoload.php'; $rackspace = new Rackspace\Rackspace([ 'username' => '{username}', 'apiKey' => '{apiKey}', ]); $service = $rackspace->monitoringV1(['region' => '{region}']); foreach ($service->listCheckType('{id}') as $checkType) { /** @var $checkType Rackspace\Monitoring\v1\Model...