text stringlengths 2 1.03M |
|---|
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\PollsAnswer */
$this->title = 'Update Polls Answer: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Polls Answers', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'i... |
<?php
namespace Dimsog\Geoimage;
class Coordinates
{
/**
* Extract coordinates from an image
* ```php
* Coordinates::extract('/path/to/image.jpg');
* ```
* @param $image
* @return array|null
*/
public static function extract($image)
{
if (file_exists($image) == f... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class viajes extends Model
{
protected $table='viaje';
protected $primaryKey = 'idviaje';
public $timestamps = false;
} |
<?php
namespace zesk;
class Control_Row extends Control {
/**
*
* @var string
*/
protected $row_tag = null;
/**
* Row theme
*
* @var string
*/
protected $row_attributes = array();
/**
* Get/set the row tag
* @param string $row_tag Set to false to have no row tag
* @return Widget_Row|mixed
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserAddressesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_addr... |
<?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
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProductCategory extends Model
{
use HasFactory;
protected $table = "product_categories";
protected $fillable = [
'name',
];
} |
<?php
require_once('support/config.php');
if(loggedId()){
addHead('Archived Journals');
addNavBar();
addSideBar();
}else{
redirect('index.php');
setAlert('Please log in to continue','danger');
}s
?>
<div class="content-wrapper">
<?php
?>
<section class="content-header">
<h2> Archived Journals </h2>... |
<table class="table table-responsive" id="cargos-table">
<thead>
<tr>
<th>Nombre</th>
<th>Descripcion</th>
<th colspan="3">Action</th>
</tr>
</thead>
<tbody>
@foreach($cargos as $cargo)
<tr>
<td>{!! $cargo->nombre !!}</td>
<... |
<?php
namespace App\Modules\SearchLog\Entities;
use Illuminate\Database\Eloquent\Model;
class SearchLog extends Model
{
protected $guarded = [];
} |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateApiResponsesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create(... |
<?php
/*
* 削除景点类别
*/
class Controller_Admin_Service_Spottype_Deletespottype extends Controller_Admin_App
{
/**
* 削除景点类别
* @access public
* @return Response
*/
public function action_index($param = 1)
{
try {
if(!isset($_POST['page'])) {
//删除所需的数据不全
$_SESSION['delete_spot_type_error'] = 'e... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVerificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('verificat... |
<?php
/**
* File for class MicrobiltStructExStdRq_Type
* @package Microbilt
* @subpackage Structs
* @author WsdlToPhp Team <contact@wsdltophp.com>
* @version 20150429-01
* @date 2015-11-26
*/
/**
* This class stands for MicrobiltStructExStdRq_Type originally named ExStdRq_Type
* Meta informations extracted fro... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\OrderSD\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for DeleteCheckDtdAnswerResponse StructType
* @subpackage Structs
*/
class DeleteCheckDtdAnswerResponse extends AbstractStructBase
{
} |
<div class="commentReplyHolder">
<div class="comment">
<div class="userFaHolder">
<span class="fa fa-user
@if($c->gender_id == 1)
{{ "femaleUser " }}
@else
{{"maleUser "}}
@endif
"></span>
<p class="memberSin... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">Criar publicação</div>
<div class="panel-body" style="padding: 5px;">
... |
@extends('layouts.backend')
@section('content')
<h2 style="margin-top: 80px;">Данные пользователя</h2>
<form {{ $novalidate }} action="{{ route('profile') }}" method="POST" class="form-horizontal" enctype="multipart/form-data">
<fieldset>
<div class="form-group">
<label for="name" class="col-... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_selection extends CI_Model {
var $table = "pendaftar";
var $select_column = array("pendaftar.id", "pendaftar.id_contest", "pendaftar.nim", "pendaftar.nama", "pendaftar.idJrs");
var $order_column = array("pendaftar.id", "pendaftar.id... |
--TEST--
ReflectionParameter::get/hasType and ReflectionType tests
--FILE--
<?php
function foo(stdClass $a, array $b, callable $c, stdClass $d = null, $e = null, string $f, bool $g, int $h, float $i, NotExisting $j) { }
function bar(): stdClass { return new stdClass; }
class c extends stdClass {
function bar(self $... |
<?php
use yii\db\Migration;
class m170611_122133_add_new_column_to_room_messages extends Migration
{
public function up()
{
$this->addColumn('{{%room_users_messages}}', 'room_id', self::integer()->notNull());
}
public function down()
{
$this->dropColumn('{{%room_users_messages}}',... |
@extends('frontend.main_master')
@section('title', 'Sub Sub Category Wise Product')
@section('content')
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<ul class="list-inline list-unstyled">
<li><a href="#">Home</a></li>
... |
<?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
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20211228\Symfony\Component\DependencyInjection\Attribute;
/*... |
<?php
interface WebPage { public function __construct(Theme $theme); public function getContent(); }
class About implements WebPage
{
protected $theme;
public function __construct(Theme $theme)
{
$this->theme = $theme;
}
public function getContent()
{
return "About page in " .... |
<?php
if (!defined('BASEPATH')){ exit('No direct script access allowed');}
class Mwelcome extends CI_Model{
public function __construct(){
parent::__construct();
}
//Mengambil semua data dari satu tabel
public function get_all(){
$query = $this->db->query("SELECT * FROM USERINFO WHERE SSN='ppt' ORDER BY... |
<?php
/**
* amoCRM API client
* @author Vlad Ionov <vlad@f5.com.ru>
* @version 0.7
*/
namespace Ufee\Amo;
if (!defined('AMOAPI_ROOT')) {
define('AMOAPI_ROOT', dirname(__FILE__));
}
if (!defined('AMOAPI_CACHE')) {
define('AMOAPI_CACHE', AMOAPI_ROOT.'/Cache');
}
if (!defined('AMOAPI_COOKIES')) {
define('A... |
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur[... |
<?php
namespace NPS\CoreBundle\Helper;
use Symfony\Component\Form\Form,
Symfony\Component\Templating\Helper\Helper;
/**
* Class for time functions
*/
class FormHelper extends Helper
{
public $name = 'FormHelper';
/**
* Return array of form errors
*
* @param Form $form Form
*
* ... |
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - http://www.uyip.org/ Pablo Saratxaga pablo@mandrakesoft.com
*/
ret... |
<?php
class cuentas extends Controller
{
private $mdlmodel = null;
function __construct(){
$this->mdlmodel = $this->loadModel("mdlcuentas");
}
public function modificarclave()
{
$contraseñaE= md5($_POST["txtclaveactual"]);
$this->mdlmodel->__SET("correo",$_POST["txtco... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class mahasiswa extends Model
{
protected $table = 'mahasiswas';
protected $primaryKey = 'id';
protected $fillable = ['nim', 'nama_lengkap', 'prodi', 'angkatan'];
} |
<?php
/** @param resource $connection */
function oci_set_call_timeout($connection, int $timeout) : bool
{
} |
<?php
namespace Matthias\SymfonyConfigTest\Tests;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationValuesAreValidConstraint;
use Matthias\SymfonyConfigTest\Tests\PhpUnit\Fixtures\AlwaysValidConfiguration;
use Matthias\SymfonyConfigTest\Tests\PhpUnit\Fixtures\ConfigurationWithRequiredValue;
use PHPUnit\Framework\Te... |
<div id="edit_panel" class="display-none">
<div class="card">
<div class="card-header text-center">
<h5>Edit Panel</h5>
</div>
<form method="POST" action="{{route('admin.users.update')}}" enctype="multipart/form-data" id="edit_form">
@csrf
@method('patch')... |
<?php
namespace Aws\Test;
use Aws\IdempotencyTokenMiddleware;
use Aws\Result;
use GuzzleHttp\Promise;
use Aws\HandlerList;
use Aws\Api\ApiProvider;
use Aws\Api\Service;
use Aws\Command;
use GuzzleHttp\Psr7\Request;
use PHPUnit\Framework\TestCase;
/**
* @covers Aws\IdempotencyTokenMiddleware
*/
class IdempotencyToke... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableTipodocumento extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tipodocumento', function (Blueprint $table) {
... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Tests\Constraints;
use Symfony\Component\Va... |
@foreach ($errors->all() as $error)
<div class="alert alert-danger alert-dismissible fade show alert-close" role="alert">
{{ $error }}
<button type="button" class="close" data-dismiss="alert" aria-label="{{ __('Close') }}">
<span aria-hidden="true">×</span>
</button>
</div>
@endforeach
@if (se... |
<?php $this->title="个人中心 - 我的关注"; ?>
<?php $status = isset($_GET['status']) ? $_GET['status'] : 1; ?>
<link rel="stylesheet" href="/asset/static/css/personal.css<?=Yii::$app->params['static_number']?>">
<div class="personal fy-container clearfix">
<?=$this->render('../template/personal');?>
<div class="persona... |
<?php declare(strict_types=1);
namespace Room11\Platter\Presentation\Template;
use CodeCollab\Template\Html as Template;
class Html extends Template
{
protected $templateDirectory;
public function __construct(string $templateDirectory, string $basePage)
{
$this->templateDirectory = $templateDire... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//注册数据填充
$this->call(UsersTableSeeder::class);
$this->call(TopicsTableSeeder::class);
$this->call(ReplysTableS... |
<?php
namespace App\Shop\Orders\Transformers;
use App\Shop\Addresses\Address;
use App\Shop\Addresses\Repositories\AddressRepository;
use App\Shop\Couriers\Courier;
use App\Shop\Couriers\Repositories\CourierRepository;
use App\Shop\Customers\Customer;
use App\Shop\Customers\Repositories\CustomerRepository;
use App\Sho... |
<?php
namespace App\Blog\Base;
use Illuminate\Foundation\Http\FormRequest;
abstract class BaseFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
} |
<?php
namespace backend\modules\user\models;
use Yii;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
use yii\swiftmailer\Mailer;
use yii\swiftmailer\Message;
use yii\helpers\Inflector;
use ReflectionClass;
/**
* This is the model class for table "tbl_user".
*
* @property string $id
* @property string $r... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages th... |
<?php
/**
* Copyright: IMPER.INFO Adrian Szuszkiewicz
* Date: 09.07.19
* Time: 16:43
*/
namespace Imper86\AllegroRestApiSdk\Model\Request\Delivery;
use GuzzleHttp\Psr7\Request;
use Imper86\AllegroRestApiSdk\Constants\ContentType;
use Imper86\AllegroRestApiSdk\Model\Request\RequestTrait;
class PostShippingRateRe... |
@extends('layouts.admin')
@section('content')
<div class="content-wrapper">
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Dashboard</h1>
</div><!-- /.col -->
... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Requests\CategoryCreateRequest;
use App\Category;
use App\Product;
class categoriesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illumi... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Content;
use Illuminate\Support\Facades\Cache;
class ContentController extends Controller
{
/**
* Manage site content.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class WalkingCustomer extends Model
{
//
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-ho... |
<link href="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.datatables.net/buttons/1.2.4/css/buttons.bootstrap.min.css"> |
<?php
namespace PROCERGS\VPR\CoreBundle\Controller\Admin;
use Doctrine\ORM\EntityManager;
use PROCERGS\VPR\CoreBundle\Entity\Sms\BrazilianPhoneNumberFactory;
use PROCERGS\VPR\CoreBundle\Entity\Sms\PhoneNumber;
use PROCERGS\VPR\CoreBundle\Entity\Sms\Sms;
use PROCERGS\VPR\CoreBundle\Service\SmsService;
use Symfony\Comp... |
<?php
return [
'autoresponder' => 'Autoresponder',
'view_and_manage_autoresponder' => 'Visualizzare e gestire autoresponder',
]; |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Cashs extends CI_Model
{
function __construct()
{
parent::__construct();
}
function Cashs_List($data_ = null){
$data = array();
if($data_ == null){
$this->db->select('admcredits.*, admcustomers.cliName, admcustomers.cliLas... |
<?php
namespace app\modules\events\models;
use app\modules\events\components\behaviors\EmptyFieldJsonBehavior;
use app\modules\events\components\validators\JsonValidator;
use Yii;
/**
* This is the model class for table "{{%event_providers}}".
*
* @property integer $provider_id
* @property string $name
* @prope... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVendorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vendors', funct... |
<?php
namespace Modules\FormBuilder\Entities;
use Illuminate\Database\Eloquent\Model;
use Modules\FormBuilder\Entities\Form;
class FormItems extends Model
{
protected $fillable = ['name', 'type','form_id','placeholder'];
public $timestamps=false;
/**
* The roles that belong to the Form
*
* ... |
<?php
namespace App\Models\Crecursos\Access\HumanResources;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Crecursos\Access\HumanResources\Traits\Attribute\HumanResourcesAttribute;
/**
* Class Contract
* @packa App\Models\Access\Contract
*/
class HumanResourc... |
@extends('admin.layouts.layouts')
@section('title-main','Quản Lý Đóng Tiền')
@section('header-main')
{{-- <label><a href="{{ URL::previous() }}">Go Back</a></label> --}}
@stop
@section('content')
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
<li class="breadcrumb-it... |
<?php
use yii\db\Migration;
/**
* Handles adding name_and_surname to table `{{%users}}`.
*/
class m190521_135100_add_name_and_surname_columns_to_users_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%users}}', 'name', $this->string()->def... |
<?php declare(strict_types=1);
namespace Shopware\Core\Content\Product\SalesChannel\Search;
use Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Symfony\Component\HttpFoundation\Request;
/**
* @deprecated tag:v6.2.0 use \Shopware\... |
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100">
<!-- Primary Navigation Menu -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- Logo -->
<div class="flex-shrink-0 fl... |
<?php
namespace App\Models\Forms;
use App\Models\Task;
use Atk4\Ui\{Form, View, Grid, JsExpression, JsReload, JsToast, VirtualPage};
use Illuminate\Http\Request;
class RatingPage extends VirtualPage
{
public $model = null;
private $grid = null;
private $request = null;
public function __const... |
<?php
// Plugin functions inside plugin files must be named: smarty_type_name
function smarty_function_load_departments_list($params, $smarty)
{
// Create DepartmentsList object
$departments_list = new DepartmentsList();
$departments_list->init();
// Assign template variable
$smarty->assign($params['assign']... |
<?php
namespace app\admin\controller;
use think\Controller;
class IndexController extends Controller
{
public function index()
{
$this->assign('title','后台');
return $this->fetch();
}
public function xydNews()
{
$this->assign('title','新闻管理');
return $this->fetch('news/news');
}
} |
<?php
/*
* MIT License
*
* Copyright (c) 2017 Richard Nahm
*
* 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 use, ... |
<?php
/*
Tab control handlers.
*/
header("Access-Control-Allow-Origin: *");
if(isset($_REQUEST["model"]))
{
$modelId = $_REQUEST["model"];
if (substr($modelId, 0, 8) == "taskroot")
{
$modelId = "tasks/" . $modelId;
}
}
if (isset($_REQUEST["list"]) && isset($_REQUEST["model"]))
{
$model = ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReservaPescasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reserva_p... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
use HasFactory;
protected $table = 'transactions';
protected $primaryKey = 'id';
protected $fillable = [
'cart_id',
'amount',
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Course;
class PaymentController extends Controller
{
public function checkout(Course $course)
{
return view('payment.checkout', compact('course'));
}
} |
<?php
namespace App\Controllers;
class Sample_label_reporter_ions extends DmsBase {
function __construct()
{
$this->my_tag = "sample_label_reporter_ions";
$this->my_title = "Sample Label Reporter Ions";
}
}
?> |
<?php ?>
<div class="table table-responsive">
Showing 1-1 of 1
<table class="table table-bordered">
<thead>
<tr>
<th>SN</th>
<th>ITEM CODE</th>
<th>ITEM NAME</th>
<th>DESCRIPTION</th>
<!-- <th>UNIT PRICE</th> -... |
@if(!isset($href))
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-2 md:px-4 py-1 md:py-2 bg-yellow border border-transparent rounded-md font-semibold text-xs text-blue uppercase tracking-widest hover:text-black active:bg-yellow focus:outline-none focus:border-blue focus:r... |
<script>
$("header .navbar-default .navbar-nav>li.notification .dropdown-menu").mCustomScrollbar();
</script>
<!-- Your share button code -->
<div id="main-content">
<!-- Dashboard Navigation -->
@include('pages.frontend.freelancer.nav_dashboard')
<!-- Dashboard Navigation End -->
<!-- Page Co... |
@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">{{ __('Login') }}</div>
<div class="card-body">
<form method="POST... |
@section('title', 'Dashboard')
@include('main')
@include('components/mainmenu')
@include('components/breadcrumb')
<meta name="csrf-token" content="{{ csrf_token() }}">
<div class="cat__content">
<div class="row">
<div class="col-xl-4" style="background-color:#fff; margin-bottom:21px;">
<div class="cat__c... |
<?php
namespace app\controllers;
use app\models\Cat;
use app\models\LoginForm;
use app\models\search\CatSearch;
use app\models\User;
use Yii;
use yii\base\Response;
use yii\db\Exception;
use yii\filters\VerbFilter;
use yii\helpers\Json;
use yii\helpers\Url;
use yii\web\Controller;
use yii\web\UploadedFile;
class Api... |
<?php
namespace Tagcade\Service\Report\VideoReport\Parameter;
class Parameter implements ParameterInterface
{
const FILTER_KEY = 'filters';
const METRIC_KEY = 'metrics';
const BREAK_DOWN_KEY = 'breakdowns';
/** @var FilterParameter */
protected $filterObject;
/** @var MetricParameter */
... |
<?php
namespace Packlink\Utilities;
class Response
{
/**
* Converts DTOs to array and returns a JSON response.
*
* @param \Packlink\BusinessLogic\DTO\BaseDto[] $entities
*/
public static function dtoEntitiesResponse(array $entities)
{
$response = [];
foreach ($entities... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v8/services/ad_group_criterion_label_service.proto
namespace Google\Ads\GoogleAds\V8\Services;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
*... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVoucherTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('voucher', function (Blueprint $table) {
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FormRegistration extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse ... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto
namespace Google\Cloud\DataLabeling\V1beta1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class CreateCompaniesTable
*/
class CreateCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{... |
<div class="modal fade" id="modalShow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Detalles</h5>
<button type="button" class="close" ... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "details".
*
* @property integer $id
* @property integer $user_id
* @property string $native
* @property string $birthday
* @property string $education
* @property string $picture
* @property integer $sex
* @property string $usern... |
@extends('layouts.layout')
@section('content')
<div class="text-center w-100 mb-5">
<h1>About </h1>
</div>
<div class="mb-2">
<a href="{{ route('add_about') }}" class="btn btn-primary">New About</a>
</div>
<table class="table table-striped table-responsive">
<thead>
<tr>
<th>ID</th>
... |
@extends('layouts.default')
@section('title')Pengajuan Laporan @endsection
@section('content')
<form action="{{ url('sarana/submit/laporan/') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="user_id" value="{{ auth()->user()->id }}">
<input type="hidden" name="csr_id" value="{{ $model->id }... |
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\Geometry\Extents\BoundingBoxOnly;
/**
* South America/Paraguay.
* @internal
*/
class Extent1188
{
public function __invoke(): array
{
return
[
[
[
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
$session_id= session_id();
$tmps = TmpData::getAllTemporal($session_id);
if(count($tmps)>0){
$contador=0;
foreach($tmps as $te):
$entrada_producto=0;
$entradas = ProcesoVentaData::getAllEntradas($te->id_producto);
if(count($entradas)>0){
foreach($entradas as $entrada): $entrada_producto=$entrada->cantidad... |
<?php
namespace console\migrations;
use yii\db\Migration;
use yii\db\Schema;
class m141121_114609_omnilight_tokens_initial extends Migration
{
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'ENGINE=InnoDB CHARSET=utf8';
... |
<?php
/**
* Toolset Common Library upgrade mechanism.
*
* Compares a number of the library version in database with the current one. If the current version is lower,
* it executes all the commands defined in get_upgrade_commands() and updates the database.
*
* Performance cost on every server request:
* - ... |
<?php
return [
'userManagement' => [
'title' => 'User management',
'title_singular' => 'User management',
],
'permission' => [
'title' => 'Permissions',
'title_singular' => 'Permission',
'fields' => [
'id' => '... |
<?php declare(strict_types=1);
namespace PhpParser;
use PhpParser\Node\Expr;
use PhpParser\Node\Scalar;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt;
abstract class ParserTest extends \PHPUnit\Framework\TestCase
{
/** @returns Parser */
abstract protected function getParser(Lexer $lexer);
... |
<!-- end::Body -->
<body class="m-page--fluid m--skin- m-content--skin-light2 m-header--fixed m-header--fixed-mobile m-aside-left--enabled m-aside-left--skin-dark m-aside-left--offcanvas m-footer--push m-aside--offcanvas-default" >
<!-- begin:: Page -->
<div class="m-grid m-grid--hor m-grid--root m-page">
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... |
@extends('layouts.dashboard')
@section('petugas', 'active')
@section('breadcrumb')
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item">
<a href="{{ url('/dashboard') }}">Home</a>
</li>
<li class="breadcrumb-item active">
Petugas
</li>
</ol>
@endsection
@section('content')
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.