text
stringlengths
2
1.03M
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Notification extends Model { use HasFactory; protected $fillable = ['user_id', 'user_from', 'text', 'read', 'forward']; public function scopeUnread($query) { retu...
<?php get_header(); get_template_part('breadcrums'); ?> <div class="container"> <div class="row enigma_blog_wrapper"> <div class="col-md-8"> <?php if ( have_posts()): while ( have_posts() ): the_post(); ?> <?php get_template_part('post','content'); ?> <?php endwhile; endif; ?> <?php weblizar_navigation(); ?> <...
<?php /********************************************************************** Copyright (C) FrontAccounting, LLC. Released under the terms of the GNU General Public License, GPL, as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progr...
<!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:...
<?php namespace App\Http\Controllers; use App\Models\Order; use App\Models\Product; use Illuminate\Http\Request; use Illuminate\Support\Str; class OrderController extends Controller { public static function generateTransactionCode(int $user_id, int $timestamp) { $timeStr = Str::upper(Str::padLeft(bas...
<?php use Codeception\Util\Fixtures; use Codeception\Util\Locator; /** * Backend 'developer' tests * * @author Gawain Lynch <gawain.lynch@gmail.com> */ class BackendDeveloperCest { /** @var array */ protected $user; /** @var array */ protected $tokenNames; /** @var array */ private $cooki...
<?php namespace App\Http\Pipelines\QueryFilters; /** * Class State. */ class Status extends Filter { /** * @param $builder * @return mixed */ protected function applyFilters($builder) { // TODO: Implement applyFilters() method. return $builder->where('status', request($thi...
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * * @category Piwik * @package Piwik */ if (!defined('PIWIK_INCLUDE_PATH')) { define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . "/../..")); } if (!define...
<?php namespace Datenkraft\Backbone\Client\OrganizationStructureApi\Generated\Endpoint; class PutIdentity extends \Datenkraft\Backbone\Client\OrganizationStructureApi\Generated\Runtime\Client\BaseEndpoint implements \Datenkraft\Backbone\Client\OrganizationStructureApi\Generated\Runtime\Client\Endpoint { protected...
<?php namespace SCart\Core\Commands; use Illuminate\Console\Command; use Symfony\Component\Process\Process; use Throwable; class Backup extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'sc:backup {--path=}'; /** * T...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class ApproveMail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return void ...
<?php namespace User\UserBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use User\UserBundle\Entity\User; /** * Description of LoadUser * * @author tatiana */ class LoadUser implements FixtureInterface { public function load(ObjectMa...
<?php namespace App\Http\Controllers; use App\Question; use Illuminate\Http\Request; use App\Classes; use App\Subject; use App\Boards; use App\Faculties; use App\Chapter; use App\Topic; use Illuminate\Support\Facades\DB; class SubjectController extends Controller { /** * Display a listing of the resource. ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\DataFootbal; class DataFootballController extends Controller { public function diferentGoal(){ $info=array(); $allData=DataFootball::all(); foreach ($allData as $value) { array_push($info,$value->F - $value->A); ...
<?php class ModelExtensionPaymentSecureTradingPp extends Model { public function install() { $this->db->query(" CREATE TABLE IF NOT EXISTS `" . DB_PREFIX . "securetrading_pp_order` ( `securetrading_pp_order_id` INT(11) NOT NULL AUTO_INCREMENT, `order_id` INT(11) NOT NULL, `transaction_reference` va...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCustomersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('customers', f...
<?php // Configuration file for Doctrine Migrations $settings = include __DIR__ . '/src/settings.php'; $db = $settings['db']; return [ 'pdo'=> new PDO($db['dsn'], $db['user'], $db['pass']) ];
<main role="main" class="container"> <?php $this->load->view('layouts/_alert') ?> <div class="row"> <div class="col-md-8 mx-auto"> <div class="card"> <div class="card-header"> Formulir Registrasi </div> <div class="card-body...
@extends('layouts/dmain') @section('content') <div class="d-flex justify-content-center"> <div class="col-lg-10"> <form action="/dashboard/update/{{ $product->id }}" method="post" enctype="multipart/form-data"> @method('put') @csrf <div class="mb-3...
<section class="section-about"> <span class="thumb-container"> <span class="thumbnails part-1"> </span> </span> <div class="wrapper"> <h2 class="section-about-title">О нас</h2> <ul class="about-items"> @foreach($abou...
<?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\HttpKernel\Profiler; use Psr\Log\LoggerInterface; use...
<?php namespace generator\base; use DB; use Illuminate\Support\Str; use generator\base\BaseGenerator; use generator\Utils\FileUtil; use \Doctrine\DBAL\Types\Type; class gController extends BaseGenerator { public function __construct($config){ parent::__construct(); $this->config = $config; // $this->rol...
<?php //ICB0 71:0 ?><?php //00ee5 // ************************************************************************* // * * // * WHMCS - The Complete Client Management, Billing & Support Solution ...
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/binaryauthorization/v1beta1/service.proto namespace Google\Cloud\BinaryAuthorization\V1beta1; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Request ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddFieldsInBoardListsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('board_li...
<?php /** * phpDocumentor * * PHP Version 5.4 * * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com) * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ namespace phpDocumentor\Transformer\Event; use phpDocumentor\Event\EventAbstract; /** ...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\i18n; use Yii; use yii\base\Component; use yii\base\NotSupportedException; /** * MessageFormatter allows formatting messages via [ICU message format](h...
<?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\HttpKernel\Event; use Symfony\Component\HttpKernel\Ht...
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'AppCache' => $baseDir . '/app/AppCache.php', 'AppKernel' => $baseDir . '/app/AppKernel.php', 'ArithmeticError' => $vendorDir . '/symfony/polyfill-php70/Resources/s...
<?php namespace cyclone\jork\model\collection; use cyclone as cy; use cyclone\jork; use cyclone\jork\schema; /** * @author Bence Eros <crystal@cyclonephp.org> * @package JORK */ class ComparatorProvider { private static $_instance_pool = array(); /** * @param ModelSchema $schema the schema of the m...
<div class="wrapper"> <div id="editor-container"> <textarea id="editor" style="display: none"> <?= htmlspecialchars($article['body']) ?> </textarea> <div id="sidebar"></div> </div> </div> <script src="/frontend/build/ckeditor.js"></script> <script src="/frontend/src/userData...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ResponseMrbUnit extends Model { protected $dates = ['deleted_at']; protected $fillable = [ 'response_id','mrb_disp_id','division_id' ]; public function response(){ return $this->belongsTo('App\NcrRe...
<?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 RectorPrefix20210517\Symfony\Component\HttpKernel\Controller; use Rector...
<!doctype html> <html <?php language_attributes(); ?> class="no-js"> <head> <meta charset="<?php bloginfo('charset'); ?>"> <title>Matthew T Rader | Dallas Photographer</title> <link href="//www.google-analytics.com" rel="dns-prefetch"> <link href="http://matthewtrader.com/wp-content/uploads/2013/02/Phot...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Daftarpesanan extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Daftarpesanan_model'); $this->load->library('form_validation'); $this->load->helper('form'); } public function index(...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="thush"> <meta name="keyword" content=""> <title>BTRS- <?php echo $__env->yieldContent('title'); ...
@extends('back.layout.master') @section('content') <section id="multiple-column-form"> <div class="row match-height"> <div class="col-12"> <div class="card"> <div class="card-content"> <div class="card-body"> ...
<?php namespace Database\Seeders\Regions; use App\Models\Village; use Illuminate\Database\Seeder; class VillagesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $villages = (array) json_decode(file_get_contents(storage_path()."/...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Hash; class LoginController extends Controller { private $username; private $password; private $msgs = []; public function generateView() { return view('auth.login'); ...
<?php namespace Dzhdmitry\TinkoffInvestApi\Rest\Schema\Enum; class BrokerAccountType { public const TINKOFF = 'Tinkoff'; public const TINKOFF_IIS = 'TinkoffIis'; }
<?php namespace App\Services\Division; class TipoActividadService { protected $tipoActividadModel; function __construct() { $this->tipoActividadModel = new \App\Models\Division\TipoActividadModel(); } /** * Obtiene los tipos de actividades de la BD * @return object */ ...
<?php namespace Cachew\Driver; /** * Test class for File * * @pacakge Cachew * @subpackage Tests */ class FileTest extends \PHPUnit_Framework_TestCase { /** * Cache test key * * @var string */ protected $key; /** * Test object instance * * @var File */ protected $object; /** * S...
<?php namespace Polargraph; use Polargraph\DiInterface; use Polargraph\Di\ServiceInterface; use Polargraph\Di\Service; use Exception; class Di implements DiInterface { protected $services = array(); protected static $instance = null; public function __construct() { $instance = self::$instan...
@extends('admin.layouts.app') @section('content') @section('pageTitle', 'Board') <style type="text/css"> .multiselectclass .btn-group{ width: 100%!important; } .multiselectclass .btn-default{ border-color: #aaa!important; } .multiselectclass .multiselect{ text-align: left; } .multiselect-container>li...
<?php // GET ONE ARTICLE $article = Article::get(15); print_r($article); // GET ALL ARTICLES // Using yieldAll() method: $articles = Article::chunks(); foreach ($articles->yieldAll() as $id => $article) { // do something. } // Alternative way (not recommended, for complexity): $articles = Article::chun...
<?php namespace Sg\DatatablesBundle\Datatable\Extension; use Symfony\Component\OptionsResolver\OptionsResolver; interface ExtensionInterface { /** * @return string */ public function setName(string $name): self; /** * @return string */ public function getName(): string; /** ...
<?php namespace App\Imports; use App\User; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; use Maatwebsite\Excel\Concerns\SkipsOnError; use Illuminate\Support\Facades\Hash; class ImportUser implements ToModel, WithHeadingRow, SkipsOnError { /** * @param array $row *...
<?php declare(strict_types=1); /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalconphp.com> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Test\Integration\Session\Adapter\Li...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProdutosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('produtos', fun...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Comment; use App\Jobs\CommentSendMail; use Symfony\Component\HttpFoundation\Response; use Illuminate\Support\Facades\Validator; use Tymon\JWTAuth\Facades\JWTAuth; use App\Models\Post; class CommentController extends Controller { p...
<footer class="mt-4 blog-footer"> <p>Blog template built for <a href="https://getbootstrap.com/">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p> <p> <a href="#">Back to top</a> </p> </footer>
<html lang="{{ app()->getLocale() }}"> <head> <meta charset="UTF-8"> <title>Send Button Widget</title> <meta name="robots" content="none"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link type="text/css" rel="stylesheet" href="{{ asset('/css/style.css') }}...
@extends('adminlte::auth.auth-page', ['auth_type' => 'login']) @section('adminlte_css_pre') <link rel="stylesheet" href="{{ asset('vendor/icheck-bootstrap/icheck-bootstrap.min.css') }}"> @stop @php( $login_url = View::getSection('login_url') ?? config('adminlte.login_url', 'login') ) @php( $register_url = View::g...
@extends('master') @section('content') <div class="row"> <div class="col-md-12"> <div class="collapse navbar-collapse" id="app-navbar-collapse"> <!-- Left Side Of Navbar --> <ul class="nav navbar-nav"> &nbsp; </ul> ...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
@if (Auth::check()) @include('home') @else <!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" conten...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMessageContainer extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('message_container', function (Blueprint $table) { $table->increments('cont...
<?php use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\Exception\InactiveScopeException; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Ex...
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?= base_url() ?>">Halaman Utama</a></li> <li class="breadcrumb-item"><a href="<?= base_url().'MainController/pemasaran' ?>">Pemasaran dan P...
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInit39ea970fc82412e3d2556cdd55f91f6a { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '6124b4c8570aa390c21fafd04a26...
<?php /** * This file was generated by phpSPO model generator 2019-10-12T18:42:56+00:00 16.0.19402.12016 */ namespace Office365\SharePoint; use Office365\Runtime\ClientValue; /** * Migration * options.<259> */ class EncryptionOption extends ClientValue { /** * @var string */ public $AES256CBCK...
<?php namespace MMazoni\DataStructure\Nonlinear; class TreeNode { public array $children = []; public function __construct(public string $data) { } public function addChildren(TreeNode $node): TreeNode { $this->children[] = $node; return $node; } }
<!doctype html> <html> <head> <title>Login</title> <link rel="stylesheet" href="<?php echo base_url() ?>/public/assets/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo base_url() ?>/public/assets/css/style.css"> </head> <body> <section class="activity-area section"> <div class="container"> ...
<!DOCTYPE html> <html lang="en-us" id="extr-page"> <head> <meta charset="utf-8"> <title> SmartAdmin</title> <meta name="description" content=""> <meta name="author" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <!-- #CSS ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\User; class sanciones extends Model { use HasFactory; protected $table = 'sanciones'; protected $hidden = [ 'id', ]; protected $fillable = [ ...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=chocorate', 'username' => 'root', 'password' => '', 'charset' => 'utf8', ];
<!-- Page Content --> <div class="container"> <div class="row text-center"> <?php foreach ($paket as $key) { // code... ?> <div class="col-lg-3 col-md-6 mb-4"> <div class="card h-100"> <img class="card-img-top" src="<?php echo config_item('base_url'); ?>assets/foto_kar...
<?php namespace App\Console\Commands; use App\Models\User; use Illuminate\Console\Command; use Illuminate\Support\Facades\Redis; class UpdateAmbassadorRankings extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'update:rankings...
<?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 /** * PDF-Suite * * Author: Chukwuemeka Nwobodo (jcnwobodo@gmail.com) * Date: 10/14/2016 * Time: 7:48 PM **/ namespace NcJoes\PdfSuite\Utils; use NcJoes\PdfSuite\Directory; use NcJoes\PdfSuite\File; use NcJoes\PdfSuite\Files\HtmlFile; use NcJoes\PdfSuite\Helpers as H; use NcJoes\PopplerPhp\Constant...
@extends('layouts.scaffold') @section('main') <h1>Register</h1> <p>{{ link_to_route('login.index', 'Авторизация') }}</p> {{ Form::open(array('route' => 'login.register')) }} <ul> <li> {{ Form::label('email', 'Email:') }} {{ Form::text('email') }} </li> ...
<?php echo $_POST["csrf_token"]; ?>
<?php namespace App; use Illuminate\Database\Eloquent\Model; class bill extends Model { protected $fillable = [ 'client_id','total', ]; public function client() { return $this->belongsTo(client::class); } }
<?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('posts', function (Bluep...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Storie; use DB; class StoriesController extends Controller { public function getIndex() { $stories = Storie::all(); return view('admin.pages.story.index', compact('stories')); } ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class PromCategory extends Model { protected $table = 'prom_cats'; public $timestamps = false; public function subcategory() { return $this->belongsTo('\App\Subcategory', 'subcategory_id'); } public function external() ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; //jangan lupa use use Illuminate\Support\Facades\Session; class AdminController extends Controller { //ayo belajar //semangat public function viewHome() { if (!Session::get('login')) { return redirect('/'); }else{ if (...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/Messages for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ names...
<main id="main"> @render('views:partials/featured-media.php', ['mode' => 'image']) <h2>{{{ $page['title'] }}}</h2> @render('views:partials/posts-meta.php', ['post' => $page]) {{ $page['content'] }} @if(!empty($page['gallery'])) @render('views:par...
<html> <head><style type="text/css"> @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700,700italic,900); body { font-family: 'Roboto', Arial, sans-serif !important; } a[href^="tel"]{ color:inherit; text-decoration:none; outline:0; ...
@extends('admin.master') @section('title','Sửa Tin Tức') @section('content') <form action="" method="POST" enctype="multipart/form-data" style="width: 650px;"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <fieldset> <legend>Thông Tin Bản Tin</legend> <span class="form_label">Tên danh mục:</span> ...
<div class="gallery"> <h2 class="w3ls_head" style="text-align: center;">Gallery</h2><br> <div class="gallery-grids"> <div class="gallery-top-grids"> <div class="col-sm-4 gallery-grids-left"> <div class="gallery-grid"> ...
<?php $version = '2.3.2'; // the $ projectnumber variable is automatically replaced by doxygen with the version number $pagetitle = 'Member List'; // the $ title variable is automatically replaced by doxygen with the page title include('../header.php'); ?> <!-- Generated by Doxygen 1.8.10 --> <div id="nav...
<div class="adjustbread"> <section class="content-header"> <ol class="breadcrumb"> <li><a href="<?php echo base_url(); ?>Admin"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="<?php echo base_url(); ?>Grades/manage_subjectgrades"><i class="active"></i> Select session</a></li> <li><a hr...
<?php return array ( 'Title' => 'শিরোনাম', 'Theme' => 'থিম', 'Hide Title' => 'শিরোনাম লুকান', 'Title Size' => 'শিরোনাম আকার', 'Extra large title.' => 'অতিরিক্ত বড় শিরোনাম।', 'Alignment' => 'সমতলতা', 'Center the title and content.' => 'শিরোনাম ও বিষয়বস্তু কেন্দ্রে আনুন।', 'HTML Class' => 'এইচটিএমএল ক্ল...
<?php namespace app\core\util; use app\admin\model\wechat\WechatUser; use app\admin\model\wechat\StoreService as ServiceModel; use app\core\implement\ProviderInterface; /** * 小程序模板消息 * Class RoutineTemplate * @package app\routine\model\routine */ class ProgramTemplateService implements ProviderInterface { //订...
<?php defined('TYPO3_MODE') or die(); if (TYPO3_MODE === 'BE') { // Registers a Backend Module \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( 'TYPO3.CMS.Documentation', 'help', 'documentation', 'top', [ 'Document' => 'list, download, fetch', ...
<?php include_once('../includes/session.php'); include_once('../database/dogs.php'); if (isset($_FILES['listing_picture'])) { $file = $_FILES['listing_picture']; if($file['error'] == UPLOAD_ERR_OK){ $file_name_parts = explode('.', $file['name']); $file_ext = strtolower(end($file_name_parts)...
@if (session('status')) <div class="alert alert-primary alert-dismissible fade show" sole="alert"> {{session('status')}} <button type="button" class="close" data-dismiss="alert" aria-label="close"> <span aria.hidden="true">&times;</span> </div> @endif
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Brand extends Model { use HasFactory; protected $fillable = [ 'brand_name_cats_eye', 'brand_name_easy', 'brand_slug_cats_eye', 'brand_slug_easy', ...
<?php class rolesModel extends CI_Model { private $id; private $nombre; private $activo; public function __construct() { parent::__construct(); $this->load->database(); } //Obtener productos, recibe activo 1 o 0 public function obtener($activo = 1) { $this->db->order_by('nombre', 'ASC'); return $thi...
<?php //00551 // -------------------------- // Created by Dodols Team // -------------------------- if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function...
<?php return [ 'userManagement' => [ 'title' => 'Управление пользователями', 'title_singular' => 'Управление пользователями', ], 'permission' => [ 'title' => 'Разрешения', 'title_singular' => 'Разрешение', 'fields' => [ 'id' ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Recipe extends Model { protected $table = 'recipe'; public function getAllRecipes() { return $this::get(); } public function getRecipeById($recipeId) { return $this::where(["recipe_id" => $recipeId])->...
<?php namespace RahulHaque\Filepond\Tests\Unit; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Storage; use RahulHaque\Filepond\Models\Filepond; use RahulHaque\Filepond\Tests\TestCase; class FilepondModelTest extends TestCase { use RefreshDatabase; /** @test */ functio...
<?php namespace AlibabaCloud\Baas; /** * @method string getBizid() * @method string getHeight() */ class DescribeBlock extends Rpc { /** * @param string $value * * @return $this */ public function withBizid($value) { $this->data['Bizid'] = $value; $this->options['for...
<?php namespace app\models; use Yii; use yii\base\Model; /** * MongoDb 卡牌类 * * */ /* { "_id" : ObjectId("585a47bc7f8b9a43058b4567"), "name" : "鹰角弓", "type" : "weapon", // weapon, minion, magic "mana" : "", // 法力消耗 "damage" : "3", // 如果是随从牌的攻击力 ...
<?php declare(strict_types=1); namespace Yiisoft\Data\Db\Processor; use Yiisoft\Data\Db\Filter\Not as FilterNot; final class Not extends CompareProcessor { public function getOperator(): string { return FilterNot::getOperator(); } }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateDescuentosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('descuentos',...