text stringlengths 2 1.03M |
|---|
<?php
namespace Agora;
require_once "AccessToken.php";
class RtmTokenBuilder
{
const RoleRtmUser = 1;
# appID: The App ID issued to you by Agora. Apply for a new App ID from
# Agora Dashboard if it is missing from your kit. See Get an App ID.
# appCertificate: Certificate of the application t... |
<?php $title = "<i class='fa fa-newspaper-o'></i> Setting"; ?>
<div id="idImgLoader" style="margin: 0 auto; text-align: center;">
<img src='<?php echo base_url();?>assets/img/loader-dark.gif' />
</div>
<div id="data" style="display:none;">
<section class="content">
<div class="page-header">
<h1>
<?php echo $ti... |
<?php
/** @var Route $router */
$router->get('board/{id}', [
'as' => 'web_board_show',
'uses' => 'Controller@show',
/* 'middleware' => [
'auth:web',
],*/
]); |
<?php
namespace App\Repository;
use Sirius\database\EntityManager;
use Sirius\database\Repository;
class MediaRepository extends Repository
{
public function __construct(?EntityManager $entityManager = null)
{
parent::__construct($entityManager, 'media');
}
} |
<?php
namespace Spy\Timeline\ResultBuilder\Pager;
interface PagerInterface
{
/**
* @param mixed $target target
* @param int $page page
* @param int $limit limit
*
* @return mixed
*/
public function paginate($target, $page = 1, $limit = 10);
/**
* @return integer
... |
@extends('layouts.main')
@section('content')
<h1>Describe a ticket</h1>
<h2>Título: {{ $ticket->title }}</h2>
<p>Description: {{ $ticket->description }}</p>
<h2>Tags</h2>
<ul>
@foreach($ticket->tags as $tag)
<li>{{ $tag->name }}</li>
@endforeach
</ul>
<a href="/tickets">back to tickets list</a>
@stop |
<!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">
<title>MM receptes</title>
<!-- Fonts -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.... |
<?php
namespace App\Http\Controllers;
use App\Instrument;
use App\Lesson;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\User;
use App\Student;
use App\InstructorAvailability;
use Carbon\Carbon;
use App\Room;
use App\Attendee;
use App\LessonInstructor;
class LessonsController extends Contr... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSubjectTeacher extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('subject_teach... |
<?php
namespace Test;
/**
* Class Web MVC :: CONTROLLER
* @package Test
*/
class Web
{
/**
* Web constructor.
*/
public function __construct()
{
$url = BASE;
echo "<h1>Router @hardjunior</h1>";
echo "<nav>
<a href='{$url}'>Home</a>
<a href='{$u... |
<?php
namespace common\models\lab;
use Yii;
/**
* This is the model class for table "tbl_customer".
*
* @property integer $customer_id
* @property integer $rstl_id
* @property string $customer_code
* @property string $customer_name
* @property string $head
* @property integer $municipalitycity_id
* @propert... |
<?php
declare (strict_types=1);
namespace Rector\NodeNameResolver\Regex;
use RectorPrefix20210719\Nette\Utils\Strings;
final class RegexPatternDetector
{
/**
* @var string[]
*
* This prevents miss matching like "aMethoda"
*/
private const POSSIBLE_DELIMITERS = ['#', '~', '/'];
public f... |
<?php
use app\components\helpers\SettingHelper;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $searchModel app\models\IssueSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'View website setting').': '.$setting->key;
?>
<?php $this->beginBlock('content-header-da... |
@extends('template')
@section('content')
<!-- CONTACT -->
<section class="contact section-padding">
<div class="container">
<div class="row">
<div class="col-lg-6 mx-auto col-md-7 col-12 py-5 mt-5 text-center" data-aos="fade-up">
<h1 class... |
@extends('layouts.app')
@section('header')
<h1 class="mt-4 mb-3">Toko
<small>{{ $store->name }}</small>
</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{ route('index') }}">Beranda</a>
</li>
<li class="breadcrumb-item">Detail Buku</li>
... |
@extends('admin.layouts.app')
@section('header-content')
<div class="title_left">
<h3>@lang('admin.Hygiene_Inspection') <small> @lang('admin.Searching')</small></h3>
</div>
<div class="title_right">
<div class="col-md-6 col-sm-6 pull-right ">
</div>
</div>
@endsection
@section('content')
<div cl... |
<!--begin::Nav Tabs-->
<ul class="dashboard-tabs custom-dashboard-tabs nav nav-pills nav-danger row row-paddingless m-0 p-0" role="tablist" id="custom-list-cars">
<!--begin::Item-->
@if (count($models) != 0)
@foreach ($models as $car)
<li class="nav-item d-flex col flex-grow-1 flex-s... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit44b540860af1fc637496ceb48bf224a9
{
public static $prefixLengthsPsr4 = array (
't' =>
array (
'think\\composer\\' => 15,
),
'a' =>
array (
'app... |
<!-- Modal -->
<div class="modal fade" id="myModalv" tabindex="-1" role="dialog">
<div class="modal-dialog" style="top:100px">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&... |
<?php
namespace app\user\controller;
use think\Controller;
use think\Db;
use think\Request;
use think\paginator\driver\Bootstrap;
use think\Cache;
use app\common\controller\Common;
/**
* 角色管理
*/
class Role extends Common
{
public function _initialize()
{
if (!session('type') <= 2) {
ret... |
<?php
/**
* UMI.Framework (http://umi-framework.ru/)
*
* @link http://github.com/Umisoft/framework for the canonical source repository
* @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
* @license http://umi-framework.ru/license/bsd-3 BSD-3 License
*/
namespace umi\form\element\html5;
... |
<?php
class Swift_Signers_SMimeSignerTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Swift_StreamFilters_StringReplacementFilterFactory
*/
protected $replacementFactory;
protected $samplesDir;
public function setUp()
{
$this->replacementFactory = Swift_DependencyContainer:... |
<!DOCTYPE HTML>
<html>
<head>
<?php
$pageName = "Help";
include("head.php");
include("xiSPEC_scripts.php");
?>
<script type="text/javascript" src="/js/accordion.js"></script>
<script type="text/javascript" src="/js/directURL.js"></script>
</head>
<body>
<!-- Sidebar -->
<?php include("navi... |
<?php
/**
* FecShop file.
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
return [
'search' => [
'filterAttr' => [
'color','size', # 在搜索页面侧栏的搜索过滤属性字段
],
]
]; |
<?php
namespace CallFire\Generator\Rest\Transform\Client;
class Subscription extends AbstractTransform
{
public function transform()
{
$classGenerator = $this->getService()->getClassGenerator();
$this->fixPathParameters($classGenerator, 'UpdateSubscription', array(
'Id' => 'int',
... |
<?php
namespace Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Entry extends Model
{
use SoftDeletes;
public $fillable = [
'name',
'details',
];
public function getMetaAttribute()
{
return (object) [
'user'... |
<?php
$this->load->view('global/_new_header.php');
$this->form_validation->set_error_delimiters('<li>', '</li>');
?>
<h2>Create a Spark</h2>
<p>To begin, fill out the required information below.</p>
<ul>
<?php echo validation_errors(); ?>
</ul>
<div class="form-wrapper form-wrapper-full">
<form action="... |
@extends('layouts.manage')
@section('content')
<div class="flex-container">
<nav class="breadcrumb">
<ul>
<li><a href="{{route('providers.show', $category->provider->id)}}">{{$category->provider->name}}</a></li>
<li class="is-active"><a>{{$category->name}}</a></... |
@extends('layout.layout_without_search_bar')
@section('content')
<!--Contact-->
<div class="sptb bg-white">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row text-white">
<div class="col-lg-6 col-md-... |
<?php
class UserModel extends CI_Model {
var $table = 'user';
function first($query){
return $this->db->get_where($this->table,$query);
}
function session($query){
foreach($query->result() as $row){
$createSession = array(
'id_user' => $row->id... |
<script>
function edit(id) {
$.ajax({
url: "<?php echo base_url() . 'Tahun_akademik/edit'; ?>",
type: "POST",
data: {id: id_tahun_akademik},
success: function(ajaxData) {
$("#modaledit").html(ajaxData);
$("#modaledit").modal('show', {
backdrop: 'true'
});
}
});
}
</scri... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "day_event".
*
* @property int|null $event_id
* @property int|null $day_id
*
* @property Day $day
* @property Event $event
*/
class DayEvent extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static funct... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Intervention\Image\Facades\Image;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illum... |
@extends ('layouts.admin')
@section ('contenido')
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
<h3>Estadísticas</h3>
</div>
</div>
<?php
foreach ($totales as $total )
{
?>
<div class="row">
@foreach($cantidadproductos as $cantidadproductos)
@endforeach
@... |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UserInstallStateSummary File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserve... |
<?php
use Faker\Generator as Faker;
$factory->define(App\County::class, function (Faker $faker) {
return [
//
];
}); |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<?php echo link_tag('assets/css/estilos.css') ?>
<script src="<?php echo base_url('assets/js/scripts.js') ?>"></script>
<title>Administração - Mega Loja-Virtual</title>
</head>
<body>
<div class="container">
<div class="head... |
<div class="w-full max-w-lg">
<div class="flex flex-wrap">
<h1 class="mb-5">{{ $title }}</h1>
</div>
</div>
<form class="w-full max-w-lg" method="POST" action="{{ $route }}">
@csrf
@isset($update)
@method("PUT")
@endisset
<div class="flex flex-wrap -mx-3 mb-6">
... |
@extends('layouts.app')
@section('content')
<div class="container mx-auto">
<div class="flex flex-wrap justify-center">
<div class="w-full max-w-sm">
<div class="flex flex-col break-words bg-white border border-2 rounded shadow-md">
<div class="font-semibold... |
<?php
/**
* Mmi Framework (https://github.com/milejko/mmi.git)
*
* @link https://github.com/milejko/mmi.git
* @copyright Copyright (c) 2010-2019 Mariusz Miłejko (mariusz@milejko.pl)
* @license https://en.wikipedia.org/wiki/BSD_licenses New BSD License
*/
namespace Mmi\Http;
use Mmi\App\KernelProfiler... |
<?php
namespace frontend\controllers;
use frontend\models\ResendVerificationEmailForm;
use frontend\models\VerifyEmailForm;
use Yii;
use yii\base\InvalidArgumentException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string... |
<?php
namespace FME\Quickrfq\Controller\Index;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\App\Action\Context;
class Index extends \FME\Quickrfq\Controller\Index
{
public function execute()
{
$this->_view->loadLayout();
$this->_view->renderLayout();
... |
<?php
require 'config/config.php';
require 'funciones/autenticacion.php';
autenticar();
include 'includes/header.html';
include 'includes/nav.php';
?>
<main class="container">
<h1>Cambio de contraseña</h1>
<div class='alert bg-light p-4 col-8 mx-auto shadow'>
<... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// Tabel products ini nanti akan kita pergunakan untuk menyimpan data menu yang dimiliki oleh restoran/café. Tabel products ini akan berelasi ke tabel categories yang sebeumnya sudah ki... |
<?php
namespace Drupal\Core\Config\Schema;
use Drupal\Component\Plugin\Discovery\DiscoveryInterface;
use Drupal\Component\Plugin\Discovery\DiscoveryTrait;
use Drupal\Core\Config\StorageInterface;
/**
* Allows YAML files to define config schema types.
*/
class ConfigSchemaDiscovery implements DiscoveryInterface {
... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Serverless\V1;
use Twilio\Exceptions\TwilioException;
use Twilio\ListResource;
use Twilio\Options;
use Twilio\Serialize;
use Twilio\Stream;
use Twilio\Values;
use Twilio\Version;
... |
<?php
namespace TenantCloud\BetterReflection\Relocated\MethodSignatureVariance;
/** @template-covariant T */
interface Out
{
}
/** @template T */
interface Invariant
{
}
/**
* @template-covariant T
* @template-covariant W of \DateTimeInterface
*/
class C
{
/**
* @param Out<T> $a
* @param Invariant<T>... |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<div class="container">
<a class="navbar-brand" href="/">
<img src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
Основной сайт
</... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="col-xl-auto">
<div class="col-xl-auto-" style="border:#95999c solid 1px">
<table class="table">
<thead>
<tr>
<th scope="col">STT</th>
... |
<?php
/* FOSUserBundle:Registration:email.txt.twig */
class __TwigTemplate_7f3d23f31af5bb648cd9be559af08fcbc7c7bec6d0d4d20a544676baabebedbb extends Sonata\CacheBundle\Twig\TwigTemplate14
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
... |
<!doctype html>
<html>
<head>
<!-- Meta -->
<meta charset="utf-8">
<META name="robots" content="index,follow">
<META name="author" content="<?php echo AUTHOR;?>">
<META name="copyright" content="<?php echo COPYRIGHT_COMPANY.' '.date('Y');?>">
<META name="description" content="<?php echo $meta_desc; ?>">
<META name="key... |
<?php
use yii\helpers\Html;
use yii\widgets\ListView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Institutes';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="institutes-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= H... |
<?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Fixer\Phpdoc;
use PhpCsFixer\... |
<?php
// Copyright (c) 2010 The Fajr authors (see AUTHORS).
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file in the project root directory.
/**
* Contains wrapper for usual argument-checking in function calls.
*
* @package Libfajr
* @subpackage Base
* @author ... |
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class DefaultController extends Controller {
/**
* @Route("/", name="homepage")
*/
public functi... |
<?php
namespace app\widgets\Thumbnail;
use Yii;
use yii\base\Widget;
class Thumbnail extends Widget
{
public $textClose;
public $textView;
public function init()
{
parent::init();
if (empty($this->textClose))
$this->textClose = Yii::t('app', 'Close');
if (empty($... |
<?php
require_once (__DIR__ . '/../../connector.php');
/**
* This sample shows how to send the list of Ssprs associated with an email address for account recovery.
*/
/**
* @var \eZmaxAPI\Api\ModuleSsprApi $objModuleSsprApi
*/
$objModuleSsprApi = new eZmaxAPI\Api\ModuleSsprApi(new GuzzleHttp\Client(), $objConfig... |
@extends('layouts.occupation')
<title>{{ config('app.name') }} - {{ $career_user->company_name }} - {{ __('menu.MENU_CUSTOMERS') }} - {{ __('menu.MENU_PLANS') }}</title>
@section('content')
<div class="container-fluid gedf-wrapper">
<div class="row">
<div class="col-md-3">
... |
<?php
namespace Drupal\Core\Display\Annotation;
/**
* Defines a page display variant annotation object.
*
* Page display variants are a specific type of display variant, intended to
* render entire pages. They must render the crucial parts of a page, which are:
* - the title
* - the main content
* - any messag... |
<?php
if (!defined("IN_SCRIPT")){
print("<script> window.location = 'index.php'; </script>");
exit();
}
require_once($basepath."/plugins/blogger/includes/blogger.class.php");
if (isset($_POST['blogger_update']) && $_POST['blogger_update']){
if (isset($_POST['blogger_license_key']) && $_POST['blogger... |
<?php declare(strict_types = 1);
namespace Apitte\Core\Schema;
final class EndpointHandler
{
/** @var string */
private $class;
/** @var string */
private $method;
/** @var mixed[] */
private $arguments = [];
public function __construct(string $class, string $method)
{
$this->class = $class;
$this->me... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
... |
<?php
declare(strict_types=1);
namespace AppBundle\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
class Version20170608084821 extends AbstractMigration
{
public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getNam... |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>@yield('title') Dashboard Sektor Pesanggrahan</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple... |
<?php namespace Tatter\Reddit;
use Tatter\Reddit\HTTP\RedditResponse;
use Tatter\Reddit\Structures\Listing;
use Tatter\Reddit\Structures\Thing;
use Tests\Support\RedditTestCase;
class HTTPTest extends RedditTestCase
{
public function testRequestReturnsRedditResponse()
{
$response = $this->reddit->request($this->u... |
<?php
/**
* UnsignedIntType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
// $this->call(UserSeeder::class);
// $this->call(CategorySeed... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
use Silex\Provider;
$app = new Silex\Application();
$app->register(new Provider\SessionServiceProvider());
/*
* -- register service controller --------------------------------------------
*/
$app->register(new Provider\ServiceControllerServiceProvider());
/*
* -- register twig templating --------------... |
<?php
namespace peang\abstraction;
use Illuminate\Database\ConnectionResolver;
use peang\Base;
use peang\contracts\DatabaseConnectionInterface;
use peang\database\MongoConnection;
use peang\database\MySQLConnection as MysqlConnection;
use peang\database\RedisConnection;
use peang\helpers\Helpers;
use Interop\Containe... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCpsUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cps_users', fun... |
<?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
namespace TS\BodegaBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class ProductoController extends Controller
{
public function NewProductoAction()
{
$producto = new \TS\BodegaBundle\Model\Producto();
$form = $this->createForm(new \TS\BodegaBundle\Form\Type... |
<!DOCTYPE html>
<html lang="en">
<head>
<?php echo $__env->make('part/head', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>
<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">
<!-- Prelo... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Student extends Model
{
public function email(){
return $this->hasMany(Email::class); //App\Email
}
} |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
/**
* Ionize
*
* @package Ionize
* @author Ionize Dev Team
* @license http://doc.ionizecms.com/en/basic-infos/license-agreement
* @link http://ionizecms.com
* @since Version 0.92
*
*/
/**
* Ionize Tagmanager Class
*
* Gives a controller Ionize basic FTL tags
*
* @package Ionize
* @subpackage... |
<?php
/**
* Created by PhpStorm.
* User: alnimu
* Date: 19.05.16
* Time: 22:15
*/
namespace common\scopes;
use common\models\PostCategory;
use yii\db\ActiveQuery;
class PostCategoriesQuery extends ActiveQuery
{
public function active()
{
return $this->andWhere(['{{%post_categories}}.status' => P... |
<?php
namespace frontend\controllers;
use Yii;
use frontend\models\Account;
use frontend\models\AccountSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
/**
* AccountController implements the CRUD actions for Account model.
*/
class Accoun... |
<?php
declare(strict_types=1);
namespace Redlite\Modules\Subredlite\Controllers;
use Redlite\Modules\Subredlite\Models\Moderators;
use Redlite\Modules\Post\Models\Post;
use Redlite\Modules\Post\Models\Posts;
class ModsController extends ControllerBase
{
public function indexAction()
{
$user_id =... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SaleProduct extends Model
{
use HasFactory;
protected $fillable = [
'sale_id',
'product_id',
'amount',
'after_amount',
'before_amount',
... |
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Ub_model extends CI_Model
{
private $_table = "user";
public $id_user;
public $nama;
public $username;
public $email;
public $password;
public $level;
public function rules()
{
return [
... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\View\Test\Unit\Design\FileResolution\Fallback;
use \Magento\Framework\View\Design\FileResolution\Fallback\File;
use Magento\Framework\View\Design\Fallback\RulePool;
class Fil... |
@include('layouts.app')
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<style>
.push-top {
margin-top: 50px;
}
.table {
width: 75%;
max-width: 75%;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableXmlUpload extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('xml_upload', ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddTimestampFieldsToUserPlayingTimesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::... |
<?php //[STAMP] b0f43cd50a6a20268cee47768b0dc1e5
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
namespace Jazz\Pianist;
use Codeception\Module\Filesystem;
use Jazz\Pianist\Codeception\Module\TestHelper;... |
<?php
/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/
namespace App\Http\FresnsDb\FresnsMentions;
class FresnsMentionsService extends FsService
{
} |
@extends('system-mgmt.department.base')
@section('action-content')
<!-- Main content -->
<section class="content">
<div class="box">
@include('flash_message')
<div class="box-header">
<div class="row">
<div class="col-sm-8">
<h3 class="box-title" style="font-weight:bolder; ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddTimestampsIntoCategoriesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('categories', function(Blueprint $table)
{
$table->timestamps()... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/var/www/html/grav/user/config/media.yaml',
'modified' => 1558463035,
'data' => [
]
]; |
@extends('layouts.app')
@section('content')
@if($employees->count())
@if($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<table class="table">
<thead class="table-primary">
... |
<form id="{{$form_id}}">
<center>
<input name="_method" type="hidden" value="POST">
@if (empty($model->pic_approv))
<input name="id" type="hidden" value="{{base64_encode($model->nm_problem)}}">
@endif
<input name="_token" type="hidden" value="{{csrf_token()}}">
@if (empty($model->pic_approv))... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EASY-Server Side Dragon</title>
<link rel="stylesheet" href="../vendor/jquery.mobile-1.4.5.min.css" />
<script src="../vendor/jquery-1.11.1.min.js"></script>
<link href... |
<!-- START BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="<?php echo base_url() ?>">Home</a></li>
<li><a href="#"><?php echo ucfirst($this->uri->segment(1));?></a></li>
<li><a href="<?php echo site_url($this->uri->segment(1)).'/'.$this->uri->segment(2); ?>"><?php echo ucfirst($this... |
<?php
/**
* @see https://github.com/laminas/laminas-tag for the canonical source repository
* @copyright https://github.com/laminas/laminas-tag/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-tag/blob/master/LICENSE.md New BSD License
*/
namespace LaminasTest\Tag;
use Laminas\Tag;
... |
<?php
declare(strict_types=1);
namespace App\Enum;
use Symfony\Component\Intl\Countries;
use Symfony\Component\Intl\Currencies;
class CurrencyEnum
{
public static function getCurrencyLabels() : array
{
$currencies = [];
foreach (Currencies::getNames() as $code => $name) {
if (!st... |
@include('layouts.script.includes')
@include('layouts.script.subcategorias')
@extends('layouts.cabecera')
@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">Solicitar Pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.