text
stringlengths
2
1.03M
<?php namespace App; use Illuminate\Database\Eloquent\Model; class EmployeePayFile extends Model { public function empReqDetail($value='') { return $this->hasOne('\App\EmployeePay','id','emp_req_id'); } }
@extends('now.cuahang.master') @section('content') <div class="profile-content"> <div class="row"> <div class="col-md-2"></div> <div class="col-md-8"> <form action="{{ route('thongtinsanpham.themsp') }}" class="form-horizontal" method="POST" enctype="multipart/form-data"> ...
<?php namespace app\models; use \app\models\base\Partner as BasePartner; /** * This is the model class for table "partner". */ class Partner extends BasePartner { /** * @inheritdoc */ public $companyAddress; public $companyAddress_N; public $latitude; public $longitude; public $pi...
@extends ('layouts.admin') @section ('contenido') <h1>indexxxxx</h1> @stop <!DOCTYPE html> <html lang="en"> <head> <!-- basic --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- mobile metas --> <meta name="viewport" content="width=device-width, initi...
@extends('master') @section('title','Manage Promo') @section('bigTitle','Manage Promo') @section('content') <div> <div class="insert"> <a href="/insertPromo"><button>Insert New Promo</button></a> </div> <table> <thead> <tr> <th>Promo Code</th> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Contact extends Model { public $timestamps = false; protected $fillable = array ('id', 'name', 'phone_number', 'email'); } ?>
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Pitch extends Model { protected $table = 'pitch'; public $primaryKey = 'pitch_id'; public $timestamps = false; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class proModel extends Model { use HasFactory; protected $table='models'; protected $primaryKey = 'id'; protected $fillable=['name', 'category_id', 'brand_id']; public func...
<?php /** * ListMarketOffersResponse * * PHP version 7.3 * * @category Class * @package WigandtTech\Refurbed * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Merchant API * * The refurbed merchant API allows to access and manage markets, currencies, instances, shippin...
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of User * * @author MD. Mashfiq */ class User extends CI_Controller { function __construct() { ...
@extends(config("settings.theme").'.layouts.index') @section('css') <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" h...
<?php namespace buttflattery\formwizard\assetbundles\bs3; use buttflattery\formwizard\assetbundles\bs3\ThemeBase; class ThemeCirclesAsset extends ThemeBase { public $css = [ 'css/theme/smart_wizard_theme_circles.min.css', ]; public function init() { parent::init(); array_push...
<?php namespace App\Http\Requests\Backend\OrderManagement; use Illuminate\Foundation\Http\FormRequest; class DeleteOrderRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return access...
<?php namespace CodeFin\Listeners; use CodeFin\Events\BankStoredEvent; use CodeFin\Models\Bank; use CodeFin\Repositories\BankRepository; use Illuminate\Support\Facades\Storage; class BankLogoUploadListener { /** * @var BankRepository */ private $repository; /** * BankLogoUploadListener co...
<?php namespace App\Controller\Admin; use App\Entity\CarsImages; use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; use EasyCorp\Bundle\EasyAdminBundle\Field\ImageField; use Vich\Uploader...
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\SandboxExtension; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use T...
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Catalog\Test\Handler\CatalogProductSimple; use Magento\Mtf\Handler\HandlerInterface; /** * Interface CatalogProductSimpleInterface */ interface CatalogProductSimpleInterface extends HandlerInte...
<?php /** * Contains all client objects for the AlertService * service. * * PHP version 5 * * Copyright 2014, Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
<?php $g_hostname = 'localhost'; $g_db_type = 'mysql'; $g_database_name = 'bugtracker'; $g_db_username = 'root'; $g_db_password = ''; $g_signup_use_capcha = OFF; $g_phpmailer_method = PHPMAILER_METHOD_SMTP; $g_smtp_host = 'localhost';
<?php class RBAC { private $module_access; function __construct() { $this->obj =& get_instance(); $this->obj->module_access = $this->obj->session->userdata('module_access'); $this->obj->is_supper = $this->obj->session->userdata('is_supper'); } //------------------------------------------------------------...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Models\BlogTag; use App\Models\Auth\User; use Faker\Generator as Faker; $factory->define(BlogTag::class, function (Faker $faker) { return [ 'name' => $faker->unique()->word, 'status' => $faker->boolean, 'created_by' ...
<?php // Run when plugin is activated function yourplugin_installer(){ global $wpdb; // Set Database For Mail Apps $table_name = $wpdb->prefix . "yourplugin"; if($wpdb->get_var("show tables like '$table_name'") != $table_name) { $sql = "CREATE TABLE " . $table_name . " ( ID INT...
<?php $this->load->view('admin/layout/header'); ?> <!-- Datatables--> <link rel="stylesheet" href="<?=base_url()?>asset/vendor/datatables.net-bs4/css/dataTables.bootstrap4.css"> <link rel="stylesheet" href="<?=base_url()?>asset/vendor/datatables.net-keytable-bs/css/keyTable.bootstrap.css"> <link rel="stylesheet" href=...
--TEST-- Test parse_url() function: Parse a load of URLs without specifying PHP_URL_PORT as the URL component --FILE-- <?php /* Prototype : proto mixed parse_url(string url, [int url_component]) * Description: Parse a URL and return its components * Source code: ext/standard/url.c * Alias to functions: */ /* * P...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class ConnectionController extends Controller { }
<script src="<?php echo base_url(); ?>assets/js/jo.js"></script> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Procurement System</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initi...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="./static/lib/dhtmlxGantt/samples/common/third-party/jquery-1.11.1.min.js" type="text/javascript" char...
<?php namespace tests\AppBundle\Entity; use AppBundle\Entity\User; use AppBundle\Entity\Customer; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class CustomerTest extends WebTestCase { /** * @var \Doctrine\ORM\EntityManager */ private $entityManager; /** * {@inheritdoc} */ ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- The above 4 meta tags *must* come first in the head; ...
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; /** * Class HomeController * * @package App\Http\Controllers\Api */ class HomeController extends Controller { public function index() { return [ 'success' => 1, 'message' => 'Welcome to our API....
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; class SeederEspecialidades extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('Especialidades')->insert([ 'Nombre' => 'Acupuntura', 'created_at' => Carbo...
<?php namespace LBHurtado\Missive\Validators; use Prettus\Validator\LaravelValidator; use Prettus\Validator\Contracts\ValidatorInterface; /** * Class ContactValidator. * * @package namespace LBHurtado\Missive\Validators; */ class ContactValidator extends LaravelValidator { /** * Validation Rules * ...
<?php /********************************************************************** * Author: Justin Vincent (jv@vip.ie) * Web...: http://justinvincent.com * Name..: ezSQL * Desc..: ezSQL Core module - database abstraction library to make * it very easy to deal with databases. ezSQLcore can not be used by...
<?php namespace App\Http\Requests; use GuzzleHttp\Psr7\Message; use Illuminate\Foundation\Http\FormRequest; class UserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePagoRecibidoSeminariosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('...
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } class AC_Admin_Addon_WooCommerce extends AC_Admin_Addon { public function __construct() { parent::__construct( 'ac-addon-woocommerce' ); $this ->set_title( __( 'WooCommerce', 'codepress-admin-columns' ) ) ->set_description( __( 'Enhance the products, orders ...
<?php // shared application configuration return array( 'basePath' => realpath(__DIR__ . '/..'), // application name 'name' => 'Application', // path aliases 'aliases' => array( 'app' => 'application', 'vendor' => realpath(__DIR__ . '/../../vendor'), ), // components to prelo...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { // $this->middleware('auth'); } /** * Show the application das...
<?php namespace App\Http\Middleware; use Closure; class CheckAge { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if ($request->age <= 200...
<?php namespace cinema\filmBundle\Repository; /** * GenreRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class GenreRepository extends \Doctrine\ORM\EntityRepository { }
<?php namespace Spec\FreshMail\Api; use FreshMail\Client; use FreshMail\HttpClient; use FreshMail\Response\Response; use PhpSpec\ObjectBehavior; use Prophecy\Argument; /** * Class SubscriberSpec * @package Spec\FreshMail\Api */ class SubscriberSpec extends ObjectBehavior { const API_KEY = 'test_api_key'; ...
<?php /* * Smarty plugin * ------------------------------------------------------------- * File: function.topten.php * Type: function * Name: topten * Purpose: displays the most visited sites * ------------------------------------------------------------- */ function smarty_function_topten($params...
<?php /* * This file is part of the Moddus project. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Developed by MIT <contact@mit-agency.com> * */ namespace AppBundle\Model; class CREntry { }
<?php /** * radium: lithium application framework * * @copyright Copyright 2013, brünsicke.com GmbH (http://bruensicke.com) * @license http://opensource.org/licenses/BSD-3-Clause The BSD License */ namespace radium\models; use radium\data\Converter; class Contents extends \radium\models\BaseModel { ...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8" /> <title>Sistema PIC - Avaliação funcional</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> </head> <body> <div> <div id="emb-email-header"> ...
<?php return [ //pagina de usuarios 'user_list' => 'User List', 'attention' => 'Attention!', 'if_no_exist_users' => "There aren't users records!", 'new_user' => 'New User', 'search' => 'Search', 'placeholder_search' => 'Type an user or email', 'role' => 'Role', 'without_role' => 'No role', 'user' => 'User', ...
<?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\Workflow\Tests; use PHPUnit\Framework\TestCase; use S...
<?php use Illuminate\Support\Str; // socketの在かを確認する // use \Illuminate\Support\Facades\Log; // Log::debug(env('DB_SOCKET')); // dd(env('DB_SOCKET')); return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |---------------------------...
<!DOCTYPE html> <html> <head> <title>Amrita Alumni Connect</title> <meta charset="utf-8"> <?php wp_head(); ?> </head> <body> <nav class="navbar navbar-default mainnav"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Linkvisual\V20180120\Models\QueryFaceUserIdByCustomUserIdResponseBody; use AlibabaCloud\Tea\Model; class data extends Model { /** * @var string */ public $params; /** * @var string */ public ...
<header class="app-header"><a class="app-header__logo" href="{{ route('dashboard.index') }}" style='font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'>My-Netflix</a> <!-- Sidebar toggle button--><a class="app-sidebar__toggle" href="#" data-toggle="sideba...
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; use app\models\ObjednavkySeznam; use yii\helpers\Url; use kartik\growl\Growl; use kartik\export\ExportMenu; use yii\bootstrap\Modal; //use dosamigos\datepicker\DatePicker; //use kartik\daterange\DateRangePicker; //use kartik\date\DatePicker; ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProjectsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('projects', fun...
<!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, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>Test Levo - Cas...
<?php namespace App; use Silex\Application; class ServicesLoader { protected $app; public function __construct(Application $app) { $this->app = $app; } public function bindServicesIntoContainer() { $this->app['custumer.service'] = function() { return new Services...
<?php namespace Nogrod\eBaySDK\Trading; /** * Class representing SetSellingManagerTemplateAutomationRuleRequest */ class SetSellingManagerTemplateAutomationRuleRequest extends SetSellingManagerTemplateAutomationRuleRequestType { public function xmlSerialize(\Sabre\Xml\Writer $writer) { parent::xmlSe...
<?php namespace app\common\model; use think\Model; class JobsModel extends Model { protected $table = "jobs"; protected $pk = "id"; }
<?php echo 'Hello PHP'; ?>
<?php $params = array_merge( require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php') ); use \yii\web\Request; $baseUrl = str_replace('/frontend/web', '', (new Request)->get...
<?php namespace Pyro\MenusModule\Link; use Anomaly\Streams\Platform\Database\Seeder\Seeder; use Pyro\UrlLinkTypeExtension\UrlLinkTypeModel; use Pyro\MenusModule\MenuModuleSeederHelper; /** * \Pyro\MenusModule\Link\LinkSeeder * */ class LinkSeeder extends Seeder { public function run() { $helper = r...
<?php namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = User::class; /** ...
--TEST-- Test sprintf() function : basic functionality - octal format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { die("skip this test is for 32bit platform only"); } ?> --FILE-- <?php /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) * Description: Return a formatted string * Source code...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserFavorites extends Model { protected $fillable = [ 'user_id', 'favorite_id' ]; }
<?php /** * Route examples * * @category Example * * @author Anton Shevchuk * @created 12.06.12 13:08 */ namespace Application; use Bluz\Controller\Controller; use Bluz\Proxy\Layout; /** * @return void */ return function () { /** * @var Controller $this */ Layout::breadCrumbs( [ ...
<?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 =...
@extends('admin.layouts.master') @section('title', 'View all Announcements') @section('content') <div class="container col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading"> <h2> Announcements </h2> </div> @if (session('s...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/10/12 * Time: 14:01 */ namespace app\index\controller; use app\common\controller\Pc; use think\Db; use think\helper\Time; class User extends Pc { public function _initialize() { parent::_initialize(); // TODO: Change the autoge...
@extends('layouts.main') @section('content') <h1>Проволока Ст25</h1> <p align="justify"> Проволока Ст25 представляет собой разновидность металлического проката, при изготовлении которого использовалась сталь марки Ст25. Эта сталь отличается тем, что в ней содержится примерно 0,25 процентов уг...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 15-9-21 * Time: 下午2:35 */ /* * author : chenbin * date : 15/9/12 * email : 525945448@qq.com * */ namespace Org\Com; class EmojiSon extends emoji{ /*获取emoji 替换符*/ public function getEmoji($text){ //从softbank 开始 $methodConfig ...
<?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...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CampBenefit extends Model { use HasFactory; protected $fillable = [ 'camp_id', 'name' ]; }
<?php include 'plantilla.php'; include 'database.php'; $pdo = Database::connect(); $sql = 'SELECT * FROM resultado_vark ORDER BY Matricula DESC'; $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFillColor(232,232,232); $pdf->SetFont('Arial','B',12); $pdf->Cell(500,10,'VARK - Todos los ...
@extends('plantilla') @section('header') <title>WikiUTA</title> <link rel="stylesheet" href="css/BgCarreras.css" /> <link href="https://fonts.googleapis.com/css?family=Playfair&#43;Display:700,900&amp;display=swap" rel="stylesheet"> <link href="css/blog.css" rel="stylesheet"> @endsection @section('con...
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit41b93791758fc028b3f322173d855e8a::getLoader();
<?php $__env->startSection('content'); ?><p>A Spanish police officer pressed his knee down on a 14-year-old's neck to restrain him after he caught the youngster without his face mask on properly.</p> <p>One onlooker could be overheard shouting at the officer, 'don't squeeze him so hard' as he used the controversial Ge...
<?php namespace App\Http\Controllers; use App\Tariff; use Illuminate\Http\Request; class AgencyServicesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return response()->json(['data' =>...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Auth; use Session; use App\User; class LoginController extends Controller { public function index() { return view('Login'); } public function login(Requ...
<?php define('IN_APP', true); ?> <?php include_once "includes/header.php" ?> <?php if(!Session::exists('username')) { Redirect::to('index.php'); } if (Input::exists()) { if(Input::get('update')) { $validate = new Validate(); $validation = $validate->check($_POST, array( 'first_name...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Data extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model("M_data"); } public function index() { $model = $this->M_data; $data['kecamatan'] = $...
<?php /** * Created by singwa * User: singwa * motto: 现在的努力是为了小时候吹过的牛逼! * Time: 01:30 */ namespace app\lib\phpqrcode; class QRsplit { public $dataStr = ''; public $input; public $modeHint; //---------------------------------------------------------------------- public function __construct($da...
@extends('layout') @section('content') <div class="row justify-content-md-center mt-5"> <div class="col-md-8"> <div class="card"> <div class="card-body"> <h4 class="card-title text-center">Reset Password</h4> @if (session('status')) ...
<?php namespace Zzl\Umeng\IOS; use Zzl\Umeng\IOSNotification; class IOSUnicast extends IOSNotification { function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; } }
<?php $__env->startSection('main-body'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>register</title> <link rel="stylesheet" href="style.css"> </head> <body class="regdiv"> <form class="signup-form" action="registeruser" method="post"> <?php echo csrf_field(); ?> <!-- fo...
<?php /** * Startup file for all things that need initialising that are not directly handled * by CodeIngiter. * This is bootstrap in the definition of the word, not related to Twitter's bootstrap * project */ // Ensure we are running on UTC time. date_default_timezone_set('UTC'); # Load the projects settings ...
@extends('layouts.mobile.app') @section('content') @include('layouts.mobile.menu') <div id="container"> @if($site === 'akhbaar24') @include('layouts.mobile.nav') @else @include('layouts.mobile.sport.nav') @endif <div class="video-details"> <div class="video-details__video"> ...
<?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpFoundation\Request; class ManageContactController extends Controller { public function indexAction() { $em = $th...
<?php namespace Simphotonics\Utils; /** * @author D Reschner <d.reschner@simphotonics.com> * @copyright 2015 Simphotonics * Description: Array helper functions. */ class ArrayUtils { /** * Returns the array offset corresponding to an array key or false * if the key does not exist. * * @...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use App\Models\DocumentsType; class CreateDocumentsTypeRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | T...
<?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 if (have_posts()): ?> <div class="row cards" style="margin-top: 3em;"> <?php while (have_posts()) : the_post(); $title = get_the_title(); $date = get_the_date(); $blurb = get_the_excerpt(); $newsletter = in_category('newsletter'); ?> <!-- article --> <article id="post-<?php the_ID(); ?>...
<?php $this->load->view("template/head", $head); ?> <?php $this->load->view("template/topbar"); ?> <?php $this->load->view("template/sidebar"); ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> ...
<?php namespace App\Http\Controllers; use App\Models\ProductCategory; use Illuminate\Http\Request; class ProductCategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $productCategorie...
<?php namespace App\Models; use CodeIgniter\Model; class UsuarioModel extends Model { protected $table = 'usuario'; protected $primaryKey = 'id'; protected $useAutoIncrement = true; protected $returnType = 'array'; protected $useSoftDeletes = false; protected $allowedFields = ['no...
<?php namespace JGM\AgpBundle\Entity; use Doctrine\ORM\EntityRepository; /** * UsuarioRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ClienteRepository extends EntityRepository { public function findAll() { return $this->getEntity...
<?php namespace Kinicart\Services\Payment; use Kinicart\Objects\Account\Account; use Kinicart\Objects\Payment\PaymentMethod; use Kinikit\Persistence\Database\Connection\DatabaseConnection; class PaymentService { /** * @var DatabaseConnection */ private $databaseConnection; /** * Paymen...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Shopping extends CI_Controller { public function __construct() { parent::__construct(); //load model $this->load->model('billing_model'); $this->load->library('cart'); } public function index() { ...
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Models\Option; class OptionController extends Controller { /** * * Get shipping * * @param null * @return array */ public function getShippingMethodData(){ $get_shipping = null; $get_shipping_option = $t...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ProductCategory extends Model { protected $guarded =[]; public function products() { return $this->hasMany(Product::class); } }