text stringlengths 2 1.03M |
|---|
<?php
/**
* From PHP-CS-Fixer
*/
final class StrictComparison extends AdditionalPass {
public function candidate($source, $foundTokens) {
if (isset($foundTokens[T_IS_EQUAL]) || isset($foundTokens[T_IS_NOT_EQUAL])) {
return true;
}
return false;
}
public function format($source) {
$this->tkns = token_g... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to... |
<?php
if ($_SESSION['newsession'] == false and $_SESSION['TypeUser'] == 'Admin' ){
$output .= '
<script language="javascript">
function changepublissettings(){
document.getElementById("useroptions").style.display = "none"
document.getElementById("groupoptions").style.display = "none"
if (document.getElementById(... |
<?php
defined('BASEPATH')OR exit('Nodirectscriptaccessallowed');
class berita extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('admin_model', 'admin');
}
public function index(){
$data['data_loker']=$this->admin->getDataLowongan();
... |
<?php
$model = 'company';
return [
'paginate' => '50',
//nombre de la seccion
'sectionName' => 'Empresa',
//routes
'indexRoute' => 'configs.' . $model . '.index',
'storeRoute' => 'configs.' . $model . '.store',
'createRoute' => 'configs.' . $model . '.create',
'showRoute' => 'config... |
<?php
/**
* Smarty Internal Extension
* This file contains the Smarty template extension to create a code frame
*
* @package Smarty
* @subpackage Template
* @author Uwe Tews
*/
/**
* Class Smarty_Internal_Extension_CodeFrame
* Create code frame for compiled and cached templates
*/
class Smarty_Interna... |
<?php
declare(strict_types=1);
namespace Kafka\Consumer;
use Kafka\Broker;
use Kafka\ConsumerConfig;
use Kafka\Exception;
use Kafka\LoggerTrait;
use Kafka\Protocol;
use Kafka\Protocol\Protocol as ProtocolTool;
use Psr\Log\LoggerAwareTrait;
use function count;
use function end;
use function explode;
use function in_ar... |
<?php
namespace hiro\commands;
use Discord\DiscordCommandClient;
use Discord\Parts\Embed\Embed;
/**
* Kick command class
*/
class Kick
{
/**
* command category
*/
private $category;
/**
* $client
*/
private $discord;
/**
* __construct
*/
public f... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSocialsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('socials', funct... |
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Tests\integration\api\groups;
use Flarum\Group\Group;
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
use Flarum\Tes... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Update_model extends MY_Model {
public function fetch_data( $org_unit_id )
{
if( empty($org_unit_id) ) {
return false;
}
$row = $this->db->get_where(ORGANIZATIONAL_UNIT, array(ORGANIZATIONAL_UNIT_ID => $org_unit_id))->row();
... |
<?php
namespace addons\cms\model;
use think\Model;
/**
* 分类模型
*/
class Channel Extends Model
{
protected $name = "channel";
// 开启自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
// 追加属性
protecte... |
<?php
namespace App\Containers\Constructor\Language\Actions;
use App\Containers\Constructor\Language\Models\Language;
use App\Containers\Constructor\Language\Tasks\UpdateLanguageTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;
class UpdateLanguageAction extends Action
{
public fu... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Metaways Infosystems GmbH, 2013
* @copyright Aimeos (aimeos.org), 2015-2018
*/
namespace Aimeos\Client\Html\Checkout\Standard\Summary;
class StandardTest extends \PHPUnit\Framework\TestCase
{
private $object;
private $context;
... |
@extends('layouts.app')
@section('content')
<style type="text/css">
.pointer{
cursor: pointer;
}
</style>
<div class="row">
<div class="offset-sm-1 col-sm-10">
<div class="row">
<div class="col-sm-12 card mb-4 box-shadow pr-0 pl-0">
<div class="card-header" id="... |
<?php
namespace Phug\Test\Parser\TokenHandler;
use Phug\Lexer;
use Phug\Lexer\Token\AutoCloseToken;
use Phug\Lexer\Token\TagToken;
use Phug\Parser;
use Phug\Parser\Node\TextNode;
use Phug\Parser\State;
use Phug\Parser\TokenHandler\AutoCloseTokenHandler;
use Phug\Test\AbstractParserTest;
/**
* @coversDefaultClass \P... |
@extends('entidade::layouts.master')
@section('content')
<div class='card'>
<div class='card-header'>
<div class='float-start'>{{ $title }}</div>
</div>
<div class='card-body'>
@include('entidade::entidade.form', ['form' => $form])
</div>
</div>
@endsection |
<?php
/**
* Created by PhpStorm.
* User: kuehn_000
* Date: 08.10.2018
* Time: 11:44
*/
Route::group(['prefix' => LaravelLocalization::setLocale()], function()
{
Route::any('/applaud/admin/dashboard', 'Backend\PilotApplaud\DashboardController@index') ;
Route::any('/applaud/performer/calculate-offer', 'Bac... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
@extends('layouts.backend')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Sub Assembly
</h1>
<ol class="breadcrumb">
<li><i class="fa fa-dashboar... |
<?php
namespace Authentication\Form;
use Zend\Form\Form;
class RegisterForm extends Form
{
public function __construct()
{
parent::__construct('register-form');
$this->setAttributes([
'class' => 'form-horizontal',
'id' => 'form-register',
]);
$this->c... |
<html>
<head>
<title>promo</title>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
</style>
</head>
<body>
<div class="container">
<div class="content">
<ul>
@foreach($students as $stude... |
<?php
/**
* Copyright (c) 2018.
* Created by Jeremy-Percy Batten
* Project Fiddly 2018
*/
?>
<!doctype html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http... |
<!--begin::Wrapper-->
<div class="d-flex flex-column flex-row-fluid wrapper" id="kt_wrapper">
<!--begin::Header-->
<div id="kt_header" class="header header-fixed">
<!--begin::Container-->
<div class="container-fluid d-flex align-items-stretch justify-content-between">
<!--begin::Header ... |
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$area = $b->getBlockAreaObject();
$_bx = Block::getByID($bOriginalID);
if (is_object($_bx)) {
$_bx->setBlockAreaObject($area);
$c = Page::getCurrentPage();
$_bx->setProxyBlock($b);
$_bx->loadNewCollection($c);
$bv = new \Concrete\Core\Block\View\BlockView(... |
<?php
namespace AdrianBrown\Matrix\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/*
class ModelFactory extends Factory
{
protected $model = YourModel::class;
public function definition()
{
return [
];
}
}
*/ |
<?php
declare(strict_types=1);
namespace Rector\PHPStanExtensions\Rule\ClassMethod;
use PhpParser\Node;
use PhpParser\Node\Stmt\ClassMethod;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleError;
use PHPStan\Rules\RuleErrorBuilder;
use Rector\Core\Exception\NotImplementedException;
use Refl... |
<?php
session_start();
include '../../includes/head.php';
include '../../includes/session.php';
?>
<title>
Add Registrar | SFAC - Las Piñas
</title>
</head>
<body class="g-sidenav-show bg-gray-100">
<?php include '../../includes/sidebar.php'; ?>
<main class="main-content position-relative max-height-vh-10... |
@extends("home")
@section("content")
<form method="post" action="{{route("customer.edit",$customer->id)}}">
@csrf
<table >
<tr>
<td>Name</td>
<td><input type="text" name="name" class="form-control"value="{{$customer->name}}"></td>
</tr>
... |
<?php
/**
* @version $Id: toolbar.templates.html.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package Joomla
* @subpackage Templates
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pur... |
<?php
namespace App\JsonApi;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
class JsonApiBuilder
{
public function applyFilters()
{
return function () {
foreach (request('filter', []) as $filter => $value) {
a... |
<?php
interface Sabai_Addon_Taxonomy_ITaxonomy
{
public function taxonomyGetInfo();
} |
<?php
/*
* This file is part of the abei2017/yii2-wx
*
* (c) abei <abei@nai8.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace tebie6\wx\mp\oauth;
use tebie6\wx\core\Driver;
use Yii;
use yii\httpclient\Client;
use tebie6\wx\core\Exc... |
<?php
namespace Source\Models;
use Stonks\DataLayer\DataLayer;
class Motoboy extends DataLayer
{
public function __construct()
{
parent::__construct('motoboys',['name'],'id',true);
}
} |
<?php
/**
* This is the template for generating the model class of a specified table.
* - $this: the ModelCode object
* - $tableName: the table name for this class (prefix is already removed if necessary)
* - $modelClass: the model class name
* - $columns: list of table columns (name=>CDbColumnSchema)
* - $labels... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Village extends Model
{
public function unioncouncil(){
return $this->belongsTo(Unioncouncil::class);
}
} |
<?php
declare(strict_types=1);
/**
* This file is part of qbhy/simple-jwt.
*
* @link https://github.com/qbhy/simple-jwt
* @document https://github.com/qbhy/simple-jwt/blob/master/README.md
* @contact qbhy0715@qq.com
* @license https://github.com/qbhy/simple-jwt/blob/master/LICENSE
*/
namespace Qbhy\Simple... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Users_model extends CI_Model {
public function __construct()
{
$this->load->database();
}
public function validateUserCredential($username, $password)
{
$query = $this->db->get_where('user', array('usernam... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('assignment_inventory', ... |
<!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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<link rel="stylesheet" hr... |
<?php $this->load->view('header'); ?>
<?php $this->load->view('menu'); ?>
<div class="container-fluid">
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Data API</h1>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3... |
<?php
declare(strict_types = 1);
namespace Rebing\GraphQL\Tests\Support\Objects;
use Closure;
use Exception;
use GraphQL\Type\Definition\ResolveInfo;
use Rebing\GraphQL\Support\Middleware;
class ExampleMiddleware extends Middleware
{
public function handle($root, $args, $context, ResolveInfo $info, Closure $next... |
<?php
namespace Tests\AppleMusic\Model;
use AppleMusic\Model\Common\PlayParameters;
use PHPUnit\Framework\TestCase;
class PlayParametersTest extends TestCase
{
protected $playParameters;
public function setUp()
{
$this->playParameters = new PlayParameters();
}
public function testDefaul... |
<?php
require_once getabspath('classes/controls/TextControl.php');
class TextAreaField extends TextControl
{
function __construct($field, $pageObject, $id, $connection)
{
EditControl::__construct($field, $pageObject, $id, $connection);
$this->format = EDIT_FORMAT_TEXT_AREA;
}
function buildControl($value, $mod... |
<?php $__env->startSection('title', 'Agregar Factura'); ?>
<?php $__env->startSection('styles'); ?>
<!-- CSS -->
<?php echo HTML::styleLocal('webroot/themes/clean-ui/annova-survey-wizard/annova_files_v1.6/html/full/css/socialize-bookmarks.css'); ?>
<?php echo HTML::styleLocal('webroot/themes/clean-ui/ann... |
<?php
namespace App\Http\Controllers;
use App\Models\Compra;
use App\Models\PedidoProducto;
use App\Models\Producto;
use App\Models\Pedido;
use App\Models\Usuario;
use App\Models\CompraProducto;
use App\Http\Requests\StoreCompraRequest;
use App\Models\NotificacionProducto;
use App\Models\NotificacionUsuario;
use Illu... |
<?php
declare(strict_types = 1);
global $site_config;
$ajaxchat .= "
<a id='ajaxchat-hash'></a>
<div id='ajaxchat' class='box'>
<div class='bordered'>
<div class='alt_bordered iframe-container bg-none has-text-centered is-paddingless'>
<iframe src='{$site_config['paths']['... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Gallery;
use File;
use Auth;
use App\ProductHasGalleries;
class GalleryController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index()
{
if(Auth::user(... |
<?php
namespace App\Http\Controllers;
use App\Methods\GenericMethod;
use App\Models\Document;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Support\Facades\Route;
class DocumentController extends Controller
{
public function index... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use app\modules\trademarketing\models\RangoCalificaciones;
/* @var $this yii\web\View */
/* @var $model app\modules\trademarketing\models\RangoCalificaciones */
$this->title = 'Detalle rango de calificaciones';
$this->params['breadcrumbs'][] = ['label' => Yii::... |
<?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... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Repositories\ArticleRepository;
class ArticleController extends Controller
{
protected $article;
public function __construct(ArticleRepository $article)
{
$this->article = $article;
}
/**
... |
<?php
class Hibrido_Trustvox_Model_Observer
{
public function saveOrder($observer)
{
$order = $observer->getEvent()->getOrder();
$status = $order->getStatus();
if($status && $status != '' && $status == Mage_Sales_Model_Order::STATE_COMPLETE){
$helper = Mage::helper('hibrido... |
<?php
/**
* Comment item template
*
* @package friedgold
* @since friedgold 1.0
**/
function comment_item( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment; ?>
<li id="comment-<?php comment_ID(); ?>" class="<?php if( get_the_author() == get_comment_author() ){ echo 'bypostauthor '; } ?>clearfix">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class tblpenjualan extends Model
{
//
} |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | At all timesI love the moment |
* +----------------------------------------------------------------------+
* | Copyright (c) 2019 www.Woisk.com All rights reserve... |
<?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
| ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Redeem_points extends CORE_Controller
{
function __construct() {
parent::__construct('');
$this->load->model(
array(
'Item_model',
'Acquired_model',
... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\BookSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Books';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="book-index">
<h1><?= Html::encode($this->... |
@if(Session::has('key'))
@foreach(Session::get('key') as $test)
<!--{{$test->id}}-->
@endforeach
<?php $i = 1; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>LEADS | Farmer :: Settings</title>
<!-- custom-theme -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" c... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateArtistsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('artists', funct... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('respostas_comentarios',... |
<?php
namespace App;
class Helpers {
/**
* Method to check the language of uploaded content for any words that could be deemed offensive
*
* If so, the content will be flagged for approval of a site admin
*/
public static function checkLanguage($inputString) {
// Make the inputStri... |
<?php
namespace App\Jobs;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class EmailNewAccount imp... |
<li>
<a href="<?= \yii\helpers\Url::to(['category/view', 'id' => $category['id']]); ?>">
<?= $category['name'] ?>
<?php if(isset($category['childs'])): ?>
<span class="badge pull-right"><i class="fa fa-plus"></i></span>
<?php endif; ?>
</a>
<?php if(isset($category['child... |
@extends('layouts.app',['title'=>'Editar Producto'])
@section('breadcrumbs', Breadcrumbs::render('editarProducto',$pro))
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('services', fun... |
<?php
use Illuminate\Support\Facades\Schema;
use Jenssegers\Mongodb\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBeritasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('beritas', functi... |
<?php
/**
* File containing the ezcDocumentDocbookToRstLiteralLayoutHandler class.
*
* @package Document
* @version 1.3.1
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Visit literallayout elements
*
* Literallayout e... |
<?php
namespace App\Http\Controllers;
use App\Exports\OffcyclesExport;
use App\Imports\OffcyclesImport;
use App\Models\BulanGaji;
use App\Models\Offcycle;
use App\Models\Oncycle;
use App\Models\SalarySlip;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
use Ramsey\Uuid\Uuid;
clas... |
@extends('base')
@section('content')
<div class="container">
<br> <br> <br> <br> <br>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Регистрация') }}</div>
<div class="card-body">
... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\Staff;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Request;
class LoginController extends Controller
{
/*
|------------------------------------... |
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
/**
* @var string
*/
public $fromEmail = 'info@mybeautiparlour.com';
/**
* @var string
*/
public $fromName = 'BeautyParlour';
/**
* @var string
*/
public $recipients;
/**
* The "user agent"
*
* @va... |
<?php
/**
* ContactOutputOnlyTest
*
* PHP version 5
*
* @category Class
* @package RadioManager
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* RadioManager
*
* RadioManager
*
* OpenAPI spec version: 2.0
* Contact: support@pluxbox.com
* Generated by... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
use HasFactory;
protected $fillable = [
'name',
'deleted',
];
public function tasks()
{
return $this->belongsToMany(T... |
<?php
namespace SISAUGES;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
public $timestamps = false;
protected $table="usuario";
protected $primaryKey = "id_usuario";
protected $fillable = ['username', 'password','status'];
protected $casts = ['su' =>... |
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
//-----------Create Users----------
$u = new User();
... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class ActivityEnded extends Mailable
{
use Queueable, SerializesModels;
public $activity;
public $mob;
public $deleteWhenMissingMo... |
<?php
/**
* Copyright (c) 2012 by Bluz PHP Team
*
* 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, copy, modify, me... |
<?php
class M_profildesa extends CI_Model{
var $tabel = 'tb_tentang_desa';
function tampil_data(){
return $this->db->get('tb_tentang_desa');
}
function get_profildesa_byid($id) {
$this->db->from($this->tabel);
$this->db->where('id', $id);
$query = $this->db->get();
if ($query->n... |
<?php
use App\Models\Travel;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTravelTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::c... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ServicesFeatureImgSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('services_feature_imgs')->insert([
... |
<?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
class SiteController extends Controller
{
/**
* {@inheritdoc}
*/
public function behaviors()
{... |
<?php
// AUTOMATICALLY GENERATED. DO NOT EDIT.
// Use `composer build` to regenerate.
namespace Wikimedia\IDLeDOM\Helper;
use Wikimedia\IDLeDOM\Element;
trait HTMLDataElement {
/**
* @param string $name
* @return mixed
*/
public function __get( string $name ) {
'@phan-var \Wikimedia\IDLeDOM\HTMLDataEleme... |
<h1>PERFORMANCE COMPARISON REPORT</h1>
<div class="wrapper" style="padding:0px;">
<div class="container">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<label for="pwd">Select State :</label>
<select class="form-control" id="stateList">
<option value="">Select State</option>
</sel... |
<?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 App\Models;
class MachineState
{
private $machine;
private $bookedByMe;
private $available;
private $stateString;
public function __construct(
Machine $machine,
bool $bookedByMe,
bool $available,
string $stateString = ''
) {
$this->... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Auth Lang - Swedish
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Author: Daniel Davis
* @ourmaninjapan
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.09.2013
*
* Descr... |
<?php
// PHP Logic Test
$array = [15, 16, 1, 4, 5, 87];
/**
* Question 1: Sort in descending order
* Since PHP already provides sorting algorithm for integer,
* we will use rsort() function
*/
rsort($array);
/**
* Question 2: Sort in ascending order
* To short in ascending order, we can use short()
*/
sort($... |
<?php
namespace App\Entities;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
... |
<?php
namespace lo\core\inputs;
use lo\core\widgets\FormattedNumberInput;
use yii\helpers\ArrayHelper;
use yii\widgets\ActiveForm;
/**
* Class NumberInput
* Поле ввода чисел
* @package lo\core\inputs
* @author Lukyanov Andrey <loveorigami@mail.ru>
*/
class NumberInput extends BaseInput
{
/**
* Формиров... |
<?php
namespace App\Utils;
use App\Services\Config;
use App\Services\Factory;
class Hash
{
const MD5 = 'md5';
const SHA256 = 'sha256';
const BCRYPT = 'bcrypt';
/**
* @param $str
*
* @return string
*/
public static function passwordHash($str)
{
$method = config('a... |
@extends('layout.app')
@section('content')
<div class="row">
@if(session('success'))
<div class="alert alert-success">
<p>{{session('success')}}</p>
</div>
@endif
@if(auth()->user()->hasPermissionTo('create'))
<div class="col-md-12">
... |
<style type="text/css">@import url("<?php echo base_url() . 'assets/plugins/datatables/dataTables.bootstrap.css'; ?>");</style>
<script type='text/javascript' src="<?php echo base_url(); ?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script type='text/javascript' src="<?php echo base_url(); ?>assets/p... |
<?php
/* @Twig/layout.html.twig */
class __TwigTemplate_db1ae5876eac66579d910e42c5c25757332b2af42faa7df403caafb7b611a37d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
't... |
<?php
// No direct access
defined('INSTALL') or die;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Install</title... |
@extends('layout.main')
@section('title', 'Registrar ingrediente') <!--title page-->
@section('content')
<h1>Ingrediente</h1>
<form action="{{route('admin-ingredient.store')}} " method="POST">
@csrf
<div class="form-group">
<label for="">Imagen ingrediente</label>
<inpu... |
<?php
declare(strict_types=1);
namespace App\Service\FilesystemAdapter\EnhancedFlysystemAdapter\Cache;
use App\Service\FilesystemAdapter\EnhancedFlysystemAdapter\EnhancedFlysystemAdapterInterface;
use League\Flysystem\Config;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;
use League\F... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateItemHistoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('item_hist... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Project extends Model
{
use SoftDeletes;
public static $validar = [
'nombre'=>'required',
'descripcion'=>'require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.