blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
568f2d3f178f463a69cede1c13d933e1ce1c3296
PHP
cedric-duhauvelle/billet_simple_alaska
/Controller/PageController.php
UTF-8
2,889
2.59375
3
[]
no_license
<?php namespace Controller; use Model\Router; use Model\CustomException; use Model\Chapters; use Model\Comment; use Manager\ChapterManager; use Manager\CommentManager; use Manager\CommentReportsManager; use Manager\UserManager; class PageController { public function __construct($db, $page) { $this->p...
true
d8b66abbff4cd445d92c296542e3b2a8a70e4ed5
PHP
helpfulrobot/taitava-silverstripe-untranslatablefields
/code/UntranslatableFields.php
UTF-8
4,625
2.75
3
[ "MIT" ]
permissive
<?php class UntranslatableFieldsExtension extends DataExtension { /** * Fields that will be made untranslatable (or translatable, if the invert mode is on). * If false or an empty array, no fields a touched. * Structure: * array( * 'MyClassName' => array( * 'MyFieldName', * ...
true
cc33c48381e54bea0f28ceaf0aac24e8eed86673
PHP
danabachulz/igrapproval
/app/Models/User.php
UTF-8
2,650
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Hash; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; protected $table = 'accounts'; public s...
true
48ca4f31c49e2065b29fc63e1e1630c10199aa2b
PHP
git4p/git4p
/src/GitUser.php
UTF-8
1,249
2.84375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Git4P library. * * Copyright (c) 2015 Martijn van der Kleijn <martijn.niji@gmail.com> * Licensed under the MIT license <http://opensource.org/licenses/MIT> */ namespace Git4p; class GitUser { protected $name = false; protected $email = false; protected $...
true
627e4d78891241ad54547387f1286ce3506128e4
PHP
aakbcms/ting_das
/includes/ting_das.client.inc
UTF-8
10,083
2.875
3
[]
no_license
<?php /** * @file * Client to communicate with the Digital Article Services (DAS). */ use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Client; /** * Class TingDasCopyRequest. */ class TingDasCopyRequest { private $url; private $wsUsername; private $wsPassword; private $pid = NULL; private $u...
true
8e488e1fd5b198d81c06d1475171f165a81c881d
PHP
phi4grv/php-try-catch-finally
/test.php
UTF-8
2,986
3
3
[]
no_license
<? /** * You can use this code for whatever you want as far as you do not misrespresent its author. * If you modify the code you should also note that the code was modified by yourself (or whoever) * and include a link to the original code and, if possible, include the original code too. * In short don't claim you ...
true
58afd59a8e5dc13ba37f42a952ef1256571b4878
PHP
roman-turchenko/morm
/yii/basic/controllers/AuthController.php
UTF-8
681
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use app\models\AuthForm; class AuthController extends \yii\web\Controller { public $layout = 'auth'; public function actionIndex() { // create instance of app\models\AuthForm $model = new AuthForm(); // Load data to the model for server side vali...
true
ccd7e4fd2e216126dcc90ce4ce241e694037d9f4
PHP
J-ordiEs/sql_php_ejercicios
/finales/count.php
UTF-8
2,047
2.578125
3
[]
no_license
<?php require_once('connection.php'); $sql = 'SELECT COUNT(*) as total_users FROM user'; $statement = $pdo->prepare($sql); $statement->execute(); $results = $statement->fetchAll(); //var_dump($results); $total_users = $results[0]['total_users']; $sql = 'SELECT COUNT(*) as total_users_types FROM user_type'; $statement ...
true
cb829d7acb7dcdf857d005cc7719e95ed8f158b6
PHP
nezarfadle/php-jsonapi.org
/app/CommentEntity.php
UTF-8
687
2.6875
3
[ "MIT" ]
permissive
<?php namespace App; use JsonApi\Core\BaseTransformer, JsonApi\Core\Attributes ; class CommentEntity extends BaseTransformer { private $comment; public function __construct( $comment, $baseUrl, $sparseFieldsets = [] ) { parent::__construct( $baseUrl, $sparseFieldsets ); $this->comment = $comment; } pu...
true
1cce07961422d53e82401bf04d4e0a1523f423bb
PHP
BigBaws/HangAnimalsPHP
/include/Singleplayer.php
UTF-8
5,007
2.53125
3
[]
no_license
<?php class Singleplayer { public function __construct() { } public function create($token, $userid, $gameid) { $api_url = "http://ubuntu4.javabog.dk:4176/HangAnimalsREST/webresources/singleplayer/create"; $method_name = "PUT"; $api_request_parameters = array...
true
1042b4c810cd00f9a83a40e7ea5d4cc2aa9c9099
PHP
AsankaJayaruwan/schoolmanagment
/app/Http/Controllers/StaffController.php
UTF-8
4,695
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\House; use App\Society; use App\Teacher; use Illuminate\Http\Request; use Session; class StaffController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { //$this->midd...
true
3ad3e6061c88c764fc3729be3ed3e7c730673507
PHP
LuanaJaimez/UTNfra
/ProgramacionIII - 2doCuatri2021/clase02/funciones.php
UTF-8
172
2.984375
3
[]
no_license
<?php function Saludar($nombre){ echo "Bienvenido " . $nombre; } function MostrarUsuario($unUsuario){ echo("El nombre del usuario es: ". $unUsuario->nombre); } ?>
true
be347fd8dc25cf77e06bfcfab2d4906134b15ab1
PHP
bestit/commercetools-odm
/src/Tests/TraitAssertTrait.php
UTF-8
1,117
2.78125
3
[]
no_license
<?php namespace BestIt\CommercetoolsODM\Tests; /** * Helps checking the usage of traits. * * @author blange <lange@bestit-online.de> * @package BestIt\CommercetoolsODM\Tests * @subpackage Tests */ trait TraitAssertTrait { /** * Asserts that a haystack contains a needle. * * @since Method avai...
true
d614bd232cefd1b8ffb57bb4817c64f423673b3f
PHP
MoussaAKHYAR/PHP_HTML_CSS_JS
/model/db.php
UTF-8
538
2.890625
3
[]
no_license
<?php function getConnexion() { $host = "localhost"; $user = "root"; $password = ""; $dbname = "banquepeuple"; $dsn = "mysql:host=$host;dbname=$dbname"; try { $db = new PDO($dsn,$user,$password); } catch (PDOException $ex) { die('Error : '.$ex->getMessage()); } return $db; } function codeAl...
true
6a54b4719496c8f9785a88895337832fa0c25152
PHP
Phainix/SCAPHPC2
/week2/operators/operators.php
UTF-8
123
3.34375
3
[]
no_license
<?php // unary !true; ++$i; $i--; // binary $i + $j; $i % $j; $i - $j; $i . $j; // trinary (condition) ? expr1 : expr2;
true
516a72715753e8a099971f2c17419b6e1456c499
PHP
4johndoe/hexlet
/web/cookie.php
UTF-8
2,748
2.640625
3
[]
no_license
<?php $app->get('/', function () { return response(render('index', ['cookies' => print_r($_COOKIE, true)])); }); $app->get('/cookie', function () { setcookie('name', uniqid()); setcookie('name1', uniqid(), time() + 10000); setcookie('name2', uniqid(), 0, '/about'); // none setcookie('name3', uniqid(), 0, '',...
true
916dd134499724e26c18deea513934055fe61be5
PHP
tantricllama/llama
/src/Llama/.svn/text-base/Locale.php.svn-base
UTF-8
4,472
3.203125
3
[]
no_license
<?php namespace Llama; /** * Locale class for use in Llama. * * @category Llama * @package Locale * @author Brendan Smith <brendan.s@crazydomains.com> * @version 1.0 */ class Locale { /** * The locale to use with GetText (e.g., en_AU, uk_UA). * * @access private * @var string ...
true
bfae49081356604f14694ea48d4b561e8b81588a
PHP
plesk/ext-domain-connect
/src/plib/scripts/update-templates.php
UTF-8
1,973
2.671875
3
[ "Apache-2.0" ]
permissive
<?php // Copyright 1999-2018. Plesk International GmbH. function emptyDir($dir) { foreach (scandir($dir) as $basename) { $path = $dir . '/' . $basename; if (is_file($path)) { unlink($path); } } } function downloadLogo($url, $dir, $providerId, $serviceId) { $ext = strto...
true
947ee9a49c4d384ac9ff318d077df20921c83683
PHP
devls/Xi2
/core/UriHandler.php
UTF-8
3,961
2.9375
3
[]
no_license
<?php /** * Xi2. * License: GPLv2/BSD * User: craigjbass * Date: 27/08/12 * Time: 11:00 */ namespace Xi2\Core; /** * Parses incoming Uri's in the following format described below. * * //<domain>/[<junk>/]+<api|view|*>/<module>/<group|0>/<view>/<method>[/!/[<params>/]+} * * @author Craig Bass <craig@devls.co...
true
c2e01867711df814bcbacbf3f7264b063097aa13
PHP
fbraem/kwai-api
/src/kwai/Core/Infrastructure/Mailer/SimpleMessage.php
UTF-8
2,313
3.078125
3
[ "MIT" ]
permissive
<?php /** * @package Core * @subpackage Infrastructure */ declare(strict_types = 1); namespace Kwai\Core\Infrastructure\Mailer; /** * An email message */ class SimpleMessage implements Message { /** * Create a new message * * @param Recipients $recipients * @param string $subject * @...
true
541fa4ac30e7b5379cde10cb6c37a1607a4f47f0
PHP
minhhienpham/foody
/app/Models/Image.php
UTF-8
616
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Image extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'path', 'product_id' ]; /** * Get Porduct Object * * @return \Illuminate...
true
c3d3082607a3874938f5e3816e1a8370c6e42406
PHP
mermetbt/Biome
/src/Biome/Core/Controller/ObjectControllerTrait.php
UTF-8
2,181
2.8125
3
[ "MIT" ]
permissive
<?php namespace Biome\Core\Controller; use Biome\Core\Controller; use Biome\Core\Collection; use Biome\Core\ORM\Models; use Biome\Core\ORM\ObjectLoader; trait ObjectControllerTrait { public function getIndex() { } public function getCreate() { } public function getEdit($object_id) { $collection_name = $this->c...
true
bc7168eb0863db171db59cb739f00726c785b858
PHP
kaleyra/scrub-route
/Scrub.php
UTF-8
1,079
2.6875
3
[]
no_license
<?php namespace Kaleyra\Route; class Scrub { public static $series; public static function index($cid, $number) { $folder = dirname(__FILE__).DIRECTORY_SEPARATOR.'country-file'.DIRECTORY_SEPARATOR; $name = "country-".$cid.".txt"; $file = file_get_contents($folder.$...
true
67a5f65e28a50a655c25d7ea176663ceae33bb59
PHP
xlcn2/delivery
/gerar_pedido_balcao.php
UTF-8
12,320
2.6875
3
[ "MIT" ]
permissive
<?php error_reporting(0); ini_set(“display_errors”, 0 ); /* /* * Gerar um arquivo .txt para imprimir na impressora Bematech MP-20 MI */ $n_colunas = 40; // 40 colunas por linha /** * Adiciona a quantidade necessaria de espaços no inicio * da string informada para deixa-la centralizada na tela * * @global int $n_colun...
true
32104dc88992b2178c22df3c78c8df69e3f5c5c9
PHP
AlaaDq/Visitor-Mangment-System
/app/Http/Requests/StoreVisitInfoRequest.php
UTF-8
1,705
2.703125
3
[]
no_license
<?php namespace App\Http\Requests; use App\Visit; use App\Visitor; use Illuminate\Foundation\Http\FormRequest; class StoreVisitInfoRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { re...
true
647c90ea4b3dcd1698500b3ed4a79abd7fa1927a
PHP
qayumhasan/school_project
/database/migrations/2020_12_08_095255_create_visitor_lists_table.php
UTF-8
1,293
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateVisitorListsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('visitor_li...
true
57aa2b28aae5877d2f048e9d2a1aef7dabb16f7e
PHP
uzairs/Restful-API-Using-Passport-to-Protect-the-Restful-api-With-OAuth2
/app/Transformers/CategoryTransformer.php
UTF-8
2,423
2.5625
3
[]
no_license
<?php namespace App\Transformers; use League\Fractal\TransformerAbstract; use App\Category; class CategoryTransformer extends TransformerAbstract { /** * A Fractal transformer. * * @return array */ public function transform(Category $category) { return [ 'ident...
true
7dc0e1db6833bafdf31a9c1e841bfb9a47dcf9a6
PHP
eugene-sukhodolskiy/rating.engine
/fw/kernel/Components.php
UTF-8
4,629
2.765625
3
[]
no_license
<?php namespace Kernel; class Components{ private static $components; /** * [create component] * @param [string] $name [component name] * @param [array] $component [array like pathToView => controller@action or pathToView => [controller@action, ...] ] */ public static function create($name, $component)...
true
66d4422a544102bf3918a4c3cde9a64064ac03cd
PHP
Har0ldB1b0y/Library_system
/database/migrations/2016_08_22_234541_create_student_years_table.php
UTF-8
1,338
2.9375
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStudentYearsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('student_years', function (Blueprint $table) { ...
true
a5f4bb330b03ea4e5b476c651103c281e50686ec
PHP
kiesel/uska
/src/main/php/de/uska/db/Player.class.php
UTF-8
13,581
2.59375
3
[]
no_license
<?php /* This class is part of the XP framework * * $Id$ */ uses('rdbms.DataSet', 'util.HashmapIterator'); /** * Class wrapper for table player, database uska * (Auto-generated on Sat, 23 Jun 2007 16:52:13 +0200 by Alex) * * @purpose Datasource accessor */ class Player extends DataSet { ...
true
971cee85e40b02f8f46699f56eb8c5601b53ee18
PHP
ruudvanbuul/bb-base
/app/BB/Entities/Region.php
UTF-8
1,081
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\BB\Entities; use App\BB\Entity; use Doctrine\Common\Collections\Collection; class Region extends Entity { /** * @var int */ protected $id; /** * @var string */ protected $name; /** * @var Region */ protected $parentRegion; /** * @v...
true
d62d3d75f8ddfd496c3d7708e9c6015df410e0a9
PHP
Rahmatulah12/test-pt-global-trend-asia
/section 2/uang_tamrin.php
UTF-8
267
3.03125
3
[]
no_license
<?php $tahunAwal = 2017; $tabunganAwal = 10000000; $tahunAkhir = 2032; $totalWaktu = $tahunAkhir - $tahunAwal; $bunga = 0.05; $totalBunga = ($tabunganAwal * $bunga) * $totalWaktu; $hasil = $tabunganAwal + $totalBunga; echo "Rp. $hasil";
true
2c3f3e32dfcf4ac275c205a2e4560a898c89f502
PHP
AdiraBlumenthal/project04
/read.php
UTF-8
898
3.328125
3
[]
no_license
<?php // 1. Create a database connection $dbhost = "66.147.242.186"; $dbuser = "urcscon3_chicago"; $dbpass = "project4chicago"; $dbname = "urcscon3_chicago"; $connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); // 2. Perform database query $query = "SELECT * FROM classinfo"; $result ...
true
69008ac41bd52cb9d35de8b22ac3f5fc8b65324e
PHP
misteryyy/project-f2
/tests/library/App/Entity/UserSettingInfoTest.php
UTF-8
2,175
2.59375
3
[]
no_license
<?php namespace App\Entity; class UserSettingInfoTest extends \ModelTestCase { public function testCanCreateUser() { $this->assertInstanceOf ( 'App\Entity\User', new User () ); } public function saveUser() { $u1 = new User (); $u1->setName("Josef"); $pass = "thisispass"; $u1->setPassword($pass); $u...
true
48b08e302e369110b29a9524eaa493052c7a00d8
PHP
jschackai/Rate-Your-Mate
/jx/behaviors.php
UTF-8
1,275
2.515625
3
[]
no_license
<?php error_reporting(-1); $sid=htmlentities($_POST["sid"],ENT_QUOTES,'iso-8859-1'); if(!isset($_GET['v'])&&$sid=NULL){die;}//tests for dummy data added for security include("../includes/database.php"); //create contract in database try{ $sth = $database->connection->prepare("INSERT INTO...
true
e60cb86355c39a468d8310f279fd11032ad06057
PHP
klugmankd/human-resources-service
/test.php
UTF-8
1,598
2.859375
3
[]
no_license
<?php use model\Database\Database; use model\Employee\Employee; require_once("src/model/Employee.php"); require_once("src/model/Database.php"); $database = new Database(); $connect = $database->connectDB(); if ($connect) { echo "ok"; } $employee = new Employee($connect); //read $arRead[] = array( "col" =>...
true
7b0bd9cedb35ecf5b03f748312ad9e52943510d3
PHP
samusvfc/Samus-Framework
/library/Samus/Types/Type_Boolean.php
UTF-8
1,306
3.53125
4
[]
no_license
<?php require_once 'Samus/types/DataTypeInterface.php'; /** * @author Vinicius Fiorio - samusdev@gmail.com */ class Type_Boolean implements DataTypeInterface { public $boolean = false; public function __construct($value=false) { $this->boolean = $value; } /** * Obtem uma instancia...
true
a10ce33b189b81fb03ac229b523e868e9b1ede46
PHP
santanu-amit-team/wefixyourcreditreport
/library/helpers/View.php
UTF-8
1,248
2.515625
3
[]
no_license
<?php namespace Application\Helper; use Application\Registry; use ThreeDS\Integrator\Exception\Exception; class View { private static $instance = null; private $viewLocation; private function __construct($relativeDir) { if (empty($relativeDir)) { $relativeDir = Registry::system(...
true
3a653b35794b8bd1eff1bc41f838e3779ceef409
PHP
panjezor/php-test
/src/DiscountRepository.php
UTF-8
511
3.1875
3
[]
no_license
<?php namespace App; /** * Class DiscountRepository * * @package App */ class DiscountRepository { /** * @param string $sku * * @return Discount|null */ public static function getBySku(string $sku) { switch ($sku) { case 'A': return static::all()[0]; case 'B': return static::all()[1];...
true
504f8b7cbe3c5077d4626cb50a70d8c8f2cf31cd
PHP
HuijiWiki/WikiSiteCreateService
/create.php
UTF-8
2,675
2.53125
3
[]
no_license
<?php require_once('/var/www/html/SiteMaintenance/WikiSite/WikiSite.php'); require_once('/var/www/html/SiteMaintenance/WikiSite/Invitation.php'); require_once('/var/www/html/SiteMaintenance/WikiSite/ErrorMessage.php'); require_once('/var/www/html/SiteMaintenance/WikiSite/DBUtility.php'); function receive_message($con...
true
0d6de647646d41f1cd05f023499f6f4eb9d948f6
PHP
elbehiseifeddine/Web_Rev_Esprit
/Test/test/src/Controller/RevClassroomController.php
UTF-8
4,351
2.828125
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Classroom; use App\Entity\RevClassrom; use App\Form\RevClassromType; use App\Repository\RevClassromRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundatio...
true
f91bc90cadb54c22669855f5808bd17e8bb2ef5f
PHP
CalvinNolan/QR-Code-Receipt-Scanner
/AIB/application/models/AIB_model.php
UTF-8
571
2.5625
3
[ "MIT" ]
permissive
<?php /* Author: Calvin Nolan & Tomas Barry */ class AIB_model extends CI_Model { function add_item($time, $location, $currency, $item_type, $item_value) { $sql = "INSERT INTO AIB_data(time, location_bought, currency, item_type, value) VALUES(?, ?, ?, ?, ?)"; $data_to_be_inserted = array( $time, $locatio...
true
7c9c10d78a12b16cf9a06bb3cde2cb1e3945eb0b
PHP
avinashs735/Univ-alumni-portal
/admin/server.php
UTF-8
5,993
2.578125
3
[]
no_license
<?php session_start(); //--------------Including GK Library File-----------// include_once("phplib/gklib.php"); //-------------Includeing dataservce file----------// include_once ("phplib/dataservice.php"); //-------------Creating object of dataservice--------// //---------------...
true
94f2465e640bbc65310aed395a2fe961f4046d42
PHP
slecul/projet-pro
/controllers/ajoutAnimalCtrl.php
UTF-8
1,221
3.09375
3
[]
no_license
<?php require_once '../models/pet.php'; require_once '../regex.php'; $formErrors = array(); if (count($_POST) > 0) { $addPet = new pet(); if (!empty($_POST['name'])) { if (preg_match($regexName, $_POST['name'])) { $addPet->name = htmlspecialchars($_POST['name']); } else { $formErr...
true
63697037a28ea85b48781d534b98411afbbec4a3
PHP
Venky123N/gkb-core-employee
/generatEmployeedDetails.php
UTF-8
1,590
2.71875
3
[]
no_license
<?php $conn = mysqli_connect("localhost", "root", "", "employee_data"); $join_date=$_POST['join_date']; $department=$_POST['department']; // Attempt insert query execution if($join_date!='' && $department==''){ $sql = "select * from employee where join_date = '$join_date'"; $result = mysqli_qu...
true
6c825aa678690de01d3c4ab795177be6a70023fc
PHP
ndobromirov/invoicing-challenge
/invoices-api/src/Services/InvoiceRepository.php
UTF-8
1,459
3.046875
3
[]
no_license
<?php namespace App\Services; use App\Entity\InvoiceEntry; class InvoiceRepository { /** * @var InvoiceEntry[] */ private $dataStorage = []; /** * Clears the internal storage. */ public function clear() { $this->dataStorage = []; } /** * Loads data into ...
true
c5fb457bc03fe069eeb0d39a164a412ed4b0b1b9
PHP
caroline-ctrl/minichat
/minichat_post.php
UTF-8
619
2.640625
3
[]
no_license
<?php $server = 'localhost'; $login = 'root'; $pass = ''; //Verifie que la page est bien connectée a la BDD try{ $connection = new PDO("mysql:host=$server;dbname=mini_chat", $login, $pass); $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); }catch(Exception $e){ die('Erreur : '.$e->getMe...
true
dae0eb23ac49f505ce442584710e774ad42467b8
PHP
iamturns/youtubeiest
/src/VideoInput/Url.php
UTF-8
739
3.03125
3
[ "ISC" ]
permissive
<?php namespace YouTubeiest\VideoInput; use YouTubeiest\Exception; /** * Eg: http://www.youtube.com/watch?v=dQw4w9WgXcQ */ class Url extends VideoInputAbstract { /** * @return bool */ protected function _isValid() { return (bool)preg_match( '/v=[A-Za-z0-9\-_]+/', ...
true
da04d0031345fa5a1676cfe9b9b5521612572e85
PHP
caiofior/fioriechiavi.it
/lib/flora/linkprovider/LinkProvider.php
UTF-8
3,269
2.6875
3
[]
no_license
<?php namespace flora\linkprovider; /** * External link provider * * @author caiofior */ class LinkProvider extends \Content { /** * Associates the database table * @param \Zend\Db\Adapter\Adapter $db */ public function __construct(\Zend\Db\Adapter\Adapter $db) { parent::__construct($db, 'li...
true
dd031be67348137e5303248ad64bccc5aa79b106
PHP
jacek-foremski/LoadBalancer
/src/LoadBalancingAlgorithm/RoundRobin.php
UTF-8
468
2.75
3
[]
no_license
<?php declare(strict_types = 1); namespace LoadBalancer\LoadBalancingAlgorithm; use LoadBalancer\Host\HostInterface; class RoundRobin extends AbstractLoadBalancingAlgorithm { /** * @var integer */ private $nextHostIndex = 0; public function nextHost() : HostInterface { $host = $thi...
true
cdbbff141a56ad2c52726031688d917f62237763
PHP
kleymerDP/php-practicas
/functions/funciones.php
UTF-8
316
3.625
4
[]
no_license
<?php function name() { echo "Hola soy una funcion"; } name(); //condicion $edad = 18; if ($edad <= 18) { function party() { echo 'Welcome to party'; } } party(); // function dentro de function function foo() { function bar() { echo 'Hola ya existo'; } } foo(); bar();
true
517e950607d1d233879999fac159d22cf4be874f
PHP
meelement/vanhack-agentbot
/app/Data/Repositories/Chats.php
UTF-8
2,455
2.6875
3
[]
no_license
<?php namespace App\Data\Repositories; use Carbon\Carbon; use App\Data\Entities\Chat; use App\Data\Entities\ChatType; use App\Data\Entities\ChatMessage; use App\Data\Repositories\Users as UsersRepository; class Chats { /** * @var \App\Data\Repositories\Users */ private $userRepository; public ...
true
53c488c2b49bc6a5985363f3e1804d4bf3845e29
PHP
Joosprotocol/JoosWebPlatform
/common/models/user/BlockchainProfile.php
UTF-8
1,954
2.6875
3
[]
no_license
<?php namespace common\models\user; use common\library\cryptocurrency\CryptoCurrencyTypes; use common\library\web3\Web3BlockChainAdapter; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "{{%blockchain_profile}}". * * @property integer $id * @property integer $user_id * @property string...
true
7466c3037b3a2b09d39bcb6fe6c43547b6247093
PHP
Jeroen-G/Explorer
/src/Application/SearchCommand.php
UTF-8
810
2.703125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace JeroenG\Explorer\Application; use JeroenG\Explorer\Domain\Query\Query; use Webmozart\Assert\Assert; class SearchCommand implements SearchCommandInterface { private ?string $index; private ?Query $query; public function __construct(?string $index = null, ?Query ...
true
74b1bffbbb1ee8db7d0eb1f679f88197af19314d
PHP
Hichamzrk/OC_P6_SnowTricks
/src/Controller/HomeController.php
UTF-8
812
2.515625
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Tricks; use App\Responders\HomeResponder; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class HomeController { /** @var EntityManagerInterface */ private $entityManager; ...
true
46749a58b15dcff00b2d23faf9044504651ecd37
PHP
johanesweddely17/proyek-web-18107009-2020
/tampil_data_mahasiswa.php
UTF-8
1,161
2.625
3
[]
no_license
<?php require_once "koneksi.php"; $sql = "SELECT * FROM tb_mahasiswa"; $result = mysqli_query($con, $sql); ?> <html> <head> <title>Daftar Mahasiswa</title> </head> <body> <h3><a href='form_tambah_data_mahasiswa.php'> Tambah Data</a></h3> <p> <form action='hasil_cari_mahasiswa.php' METHOD='POST'> Cari ...
true
2fe3fc07e8966b931ce977348e41ed2367c419f6
PHP
PaulaoDeveloper/JSKhanFramework
/lib/Sockets/vendor/igorw/event-source/src/Igorw/EventSource/Event.php
UTF-8
2,638
2.984375
3
[ "MIT" ]
permissive
<?php /* * This file is part of EventSource. * * (c) Igor Wiedler <igor@wiedler.ch> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Igorw\EventSource; class Event { private $comments = array(); private $id; ...
true
e059f63a06938830a9ec53bcb6a66f184951d0b1
PHP
Catfeeds/mallShop
/LightpenCms/Lib/ORG/Memc.class.php
UTF-8
8,538
2.90625
3
[]
no_license
<?PHP /** * * Demo: * $cacheObj = new Memc(); * $cacheObj -> set('keyName','this is value'); * $cacheObj -> get('keyName'); * * @author Lando<806728685@qq.com> * @since 2016-6-16 * @version 1.0 */ class Memc{ private $local_cache = array(); private $m; private $client_type; privat...
true
e38f20ea5974abb8ffee6005d9842612a9177158
PHP
Nabilaraa/tambal-ban
/app/Core/Contracts/DotEnv.php
UTF-8
107
2.53125
3
[]
no_license
<?php interface DotEnvImp { public function __construct(string $path); public function load(); }
true
8b7fd4f0a39e8178a2cb44b00cf52f51c98d18c3
PHP
amin007/mvc-melayu
/Aplikasi/Kelas/Utama/Tanya/belian_tanya.php
UTF-8
9,204
2.765625
3
[]
no_license
<?php namespace Aplikasi\Tanya; //echo __NAMESPACE__; class Belian_Tanya extends \Aplikasi\Kitab\Tanya { #=========================================================================================== #------------------------------------------------------------------------------------------# public function __construct(...
true
0d7a4d36ab118e13df13565a88fad139a5ed3a4c
PHP
adaptiveit/TMS
/app/Models/Privilege.php
UTF-8
1,666
2.625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use DB; class Privilege extends Model { protected $table = 'tbl_privilege'; protected $fillable = ['module_id', 'privilege_name', 'privilege_desc', 'status', 'created_by', 'updated_by']; public static function getModuleSelectList($pare...
true
f8eb5c43efc2778802d58ffd4cc4999cad43f13c
PHP
martin-laz/CoffeeDrop
/app/Http/Controllers/CoffeeDropController.php
UTF-8
5,658
3.015625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\CoffeeDrop; use GuzzleHttp\Client; class CoffeeDropController extends Controller { public function find($postcode){ //Uses getCoordinates to find latitude and longitude of a postcode $inputCoordinates =$this->getCoordinates(...
true
ddc269e9f47c4824d397597512b8d476e5dbad7c
PHP
Bigetion/aarAPI
/system/core/main.php
UTF-8
511
2.578125
3
[]
no_license
<?php if ( ! defined('INDEX')) exit('No direct script access allowed'); class Main { var $c = array(); function __get($key) { if (!array_key_exists($key, $this->c)) { $this->c[$key] = new $key(); return $this->c[$key]; } else { return $this->c[$key]; ...
true
a7aeb28dba9ff20818ff91639ae86ad6a36c9d35
PHP
Shofiul-Alam/magento-app
/src/vendor/vertex/sdk/src/Mapper/Api60/CustomerMapper.php
UTF-8
4,753
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "AFL-2.1", "AFL-3.0", "OSL-3.0" ]
permissive
<?php /** * @copyright Vertex. All rights reserved. https://www.vertexinc.com/ * @author Mediotype Development <diveinto@mediotype.com> */ namespace Vertex\Mapper\Api60; use Vertex\Data\AddressInterface; use Vertex\Data\Customer; use Vertex\Data\CustomerInterface; use Vertex\Exception\ValidationExce...
true
5b5f8d617429c798a31fef38865efd32a3b264c2
PHP
usha624523/Restaurant-Management-System
/project/viewchef.php
UTF-8
1,147
2.765625
3
[]
no_license
<html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <?php $host="localhost"; $user="root"; $password=""; $con= new mysqli($host,$user,$password,"restaurant"); if ($con->connect_error) { die("Connection failed: " . $con->connect_error); } if ($_SERVER["REQUEST_METHOD"] ...
true
f683d4e8578c645ec75f7ca0c68a447ddd46505a
PHP
divinity76/intel-cpu-database
/scanner.php
UTF-8
7,942
2.609375
3
[ "Unlicense" ]
permissive
<?php declare(strict_types=1); // https://raw.githubusercontent.com/divinity76/hhb_.inc.php/master/hhb_.inc.php require_once('hhb_.inc.php'); const DB_FILE_NAME = 'databases/intel_cpu_database.json'; if (php_sapi_name() !== 'cli') { die("this script can only run from cli. look at the db to see how it's going, shou...
true
ccd909b185292d6eba320d8c44b169201b7c1152
PHP
juan8534/ecommerce-laravel
/app/Http/Controllers/ProductsController.php
UTF-8
4,629
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Product; use App\Image; use App\Category; use Illuminate\Support\Facades\Auth; use Illuminate\Database\QueryException; use Alert; class ProductsController extends Controller { /*Creamos el middleware para que solo l...
true
3c218af0df85ad4260dea8e3579676ded347fa9e
PHP
marciopocebon/redefinicao-de-senha
/redefinir.php
UTF-8
2,482
2.703125
3
[]
no_license
<?php include('config.php'); ?> <html> <head> <link rel="stylesheet" href="<?php echo INCLUDE_PATH; ?>css/login.css"> </head> <body> <?php if(isset($_GET['token'])){ $token = $_GET['token']; if($token != $_SESSION['token...
true
e20d9b768b6a40f85986994cd39aba96d36703d9
PHP
ushu2/cphalcon
/php-tests/tests/Phalcon/Text/UnitTest.php
UTF-8
2,734
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * UnitTest.php * \Phalcon\Text\UnitTest * * Tests the \Phalcon\Text component * * PhalconPHP Framework * * @copyright (c) 2011-2013 Phalcon Team * @link http://www.phalconphp.com * @author Andres Gutierrez <andres@phalconphp.com> * @author Eduar Carvajal <eduar@phalconphp.com> * @author...
true
3d1c1f5d3bd07711e40b9aa601f16c29c6454b42
PHP
steemd/framework
/framework/Model/ActiveRecord.php
UTF-8
5,183
3.15625
3
[]
no_license
<?php namespace Framework\Model; use Framework\DI\Service; use Framework\Exception\DatabaseException; /** * ActiveRecord its main Model Class to get connection whith DB * * @author steemd */ abstract class ActiveRecord { /** * @var object $db */ static public $db; /** * Consrtuctor ...
true
c6e8dea4307644da5f36e1d55d27841533dc66cf
PHP
gabrielbull/php-ups-api
/src/Entity/NetSummaryCharges.php
UTF-8
712
2.765625
3
[ "MIT" ]
permissive
<?php namespace Ups\Entity; class NetSummaryCharges { /** * @var Charges */ public $GrandTotal; /** * @var Charges|null */ public $TotalChargesWithTaxes; /** * @param \stdClass|null $response */ public function __construct(\stdClass $response = null) { ...
true
951b458243bee8fe472ca79c846993386c25da9f
PHP
GabrielDivincky/caballos
/registroAnimales.php
UTF-8
1,643
2.71875
3
[ "MIT" ]
permissive
<?php if (isset($_POST)) { require_once 'conexion.php'; if (!isset($_SESSION)) { session_start(); } // Recoger los valores del formulario $nombre = isset($_POST['nombre']) ? mysqli_real_escape_string($conexion,$_POST['nombre']) : false; $email = isset($_POST['correo']) ? mysqli_real_escape_string($...
true
d8164f4eaa22767386a9568f1336a849eeca3409
PHP
jahidblackrose/gsb_web
/admin/file_upload_parser.php
UTF-8
2,141
2.828125
3
[ "MIT" ]
permissive
<?php require_once('re_login_connection.php'); $fileName = $_FILES["file1"]["name"]; // The file name $fileTmpLoc = $_FILES["file1"]["tmp_name"]; // File in the PHP tmp folder $fileType = $_FILES["file1"]["type"]; // The type of file it is $fileSize = $_FILES["file1"]["size"]; // File size in bytes $fileErrorMsg = ...
true
bce391cb59e3c96a0c9ef6572d0bb7aa02b405ba
PHP
EbarriosCode/Proyecto-BD
/ProyectoBD/model/TrabajadoresCRUD_modelo.php
UTF-8
3,190
3.0625
3
[]
no_license
<?php class TrabajadoresCRUD{ private $db, $conn; private $trabajadores; private $buscarTrabajadores; public function __construct() { require_once('Conexion.php'); $this->db = new Conexion(); $this->conn = $this->db->Conectar(); $this->buscarTrabajadores = array(); $this->trabajadores = ...
true
6ed8b622c4d466aff581b61ed90d319a02859694
PHP
chrisPumita/fesc_cursos
/app/model/ALUMNO.php
UTF-8
13,999
2.875
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php include_once "PERSONA.php"; include_once "I_ALUMNO.php"; class ALUMNO extends PERSONA implements I_ALUMNO { private $id_alumno; private $id_municipio; private $id_universidad; private $matricula; private $nombre_uni; private $tipo_procedencia; private $id_procedencia; private $ca...
true
ad798694af6e5dd5053499611c67bf0d1abf6455
PHP
berthold-lbb/api-subcription
/app/Models/SubscriptionType.php
UTF-8
604
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. */ namespace App\Models; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; /** * Class SubscriptionType * * @property int $id * @property string|null $description * * @property Collection|Subscription[] $subscriptions * * @package ...
true
8905ba455e631317d736fe5ae7984687f969546f
PHP
jccforever/ai-facescan
/src/migrate/migrate/admin/controller/user/Aitext.php
UTF-8
2,566
2.578125
3
[]
no_license
<?php namespace app\admin\controller\user; use app\common\controller\Backend; use Wjohnson\AiFacescan\common\model\UserAiText as InstanceModel; /** * * * @icon fa fa-circle-o */ class Aitext extends Backend { //模糊查询字段 protected $searchFields = 'id,title'; /** * Article模型对象 * @var \app\adm...
true
d1409a61e4dc87b3bd320e528710da76b6501d09
PHP
bsang/musicalfeedsApp
/fuel/app/classes/model/user.php
UTF-8
998
2.59375
3
[ "MIT" ]
permissive
<?php class Model_User extends \Orm\Model { protected static $_properties = array( 'id', 'username', 'first_name', 'last_name', 'email', 'password', 'login_hash', 'city', 'created_at', 'updated_at', ); protected static $_has_many = array( 'posts' => array( ...
true
066fbd456a8261ca5f9b11faffeee982ab7dd872
PHP
fjugaldev/forking-procesos-php
/forking.php
UTF-8
482
2.765625
3
[]
no_license
<?php require_once "Threading/ThreadManager.php"; require_once "Threading/Task/BaseTask.php"; require_once "Threading/Task/Task.php"; $maxThreads = 5; $pushNotifications = 30; echo 'Ejemplo de forking de procesos con PHP con un máximo de ' . $maxThreads . ' hilos' . PHP_EOL . PHP_EOL; $exampleTask = new Threading\Tas...
true
c02d50689d234d295d6a9a9f43a0c20ba929f93d
PHP
forkcms/forkcms
/src/Backend/Core/Tests/BackendWebTestCase.php
UTF-8
1,471
2.53125
3
[ "MIT" ]
permissive
<?php namespace Backend\Core\Tests; use Common\WebTestCase; use Symfony\Bundle\FrameworkBundle\Client; use Symfony\Component\HttpFoundation\Session\Session; abstract class BackendWebTestCase extends WebTestCase { /** * Make sure we are no longer logged-in */ protected function tearDown(): void ...
true
b552ccbf149a1049fead9254fdff44dcf1e72e63
PHP
MrRize-web/ProjetWorkshop
/Php/modifier.php
UTF-8
2,054
2.765625
3
[]
no_license
<?php session_start(); require_once '../Action/Config.php'; $db = new PDO("mysql:host=" . config::SERVEUR . ";dbname=" . config::BASE, config::USER, config::MDP); $statement = $db->prepare("SELECT * FROM club WHERE identifiant = :id"); $id= filter_input(INPUT_GET,"id"); $statement->bindParam(":id", $id); $entrepris...
true
da6a00b1f2cb0dd440e786da6ce0eedd42b1e86e
PHP
antheboets/WDA_v2_Anthe_boets
/Data/Squad.php
UTF-8
1,783
2.65625
3
[]
no_license
<?php include_once($_SERVER['DOCUMENT_ROOT']."/anthe.boets/public_html/TacGen/Data/User.php"); include_once($_SERVER['DOCUMENT_ROOT']."/anthe.boets/public_html/TacGen/Data/Gun.php"); include_once($_SERVER['DOCUMENT_ROOT']."/anthe.boets/public_html/TacGen/Data/Armour.php"); include_once($_SERVER['DOCUMENT_ROOT']."/anthe...
true
907698f2ca5b64f705fe0865270f8c0f030f8c4e
PHP
emilskrzypczynski/website-benchmark
/symfony/src/Mailer/MailerInterface.php
UTF-8
369
2.703125
3
[]
no_license
<?php /** * @author: Emil Skrzypczyński <emilskrzypczynski09 at gmail.com> */ declare(strict_types=1); namespace App\Mailer; interface MailerInterface { /** * @param string $from * @param string $to * @param string $subject * @param string $body */ public function sen...
true
ce6a2c4bef142ed389a1ae36272e1bc16c6fa3fa
PHP
MineDeepRock/deceit
/src/deceit/pmmp/forms/MainMapForm.php
UTF-8
1,150
2.703125
3
[]
no_license
<?php namespace deceit\pmmp\forms; use deceit\dao\MapDAO; use form_builder\models\simple_form_elements\SimpleFormButton; use form_builder\models\SimpleForm; use pocketmine\Player; use pocketmine\Server; class MainMapForm extends SimpleForm { public function __construct() { $buttons = [new SimpleFormBu...
true
311beda38f0dae831ae944b757f87d6b0336da63
PHP
jordillonch/Deployer
/src/JordiLlonch/Component/Deployer/Deploy/CopyStrategy/Rsync.php
UTF-8
1,762
2.75
3
[ "MIT" ]
permissive
<?php /** * @author Jordi Llonch <llonch.jordi@gmail.com> * @date 28/09/13 16:23 */ namespace JordiLlonch\Component\Deployer\Deploy\CopyStrategy; use JordiLlonch\Component\Deployer\Deploy\OperationSystem\Commands; use JordiLlonch\Component\Deployer\Deploy\Entity\SshConfig; use JordiLlonch\Component\Deployer\Deplo...
true
dd3a68bb80bcc0dce664b7076451ce5192bab51c
PHP
Thutos/ApiTestModi
/libs_orangeapis.php
UTF-8
4,741
2.53125
3
[]
no_license
<?php function chargeAmountUser($msisdn, $price, $cur, $token){ include 'vars.php'; $msisdn = str_replace("+","",$msisdn); $url = $urlChargeAmount; date_default_timezone_set('UTC'); $thisDate = date("YmdHis"); $data = '{"endUserId":"tel:+'.$msisdn.'","transactionOperationStatus":"Charged","chargingI...
true
e6f55d2a4d729829ab93843ab410d797e99c7314
PHP
ChenJiR/leetcode.php
/hasGroupsSizeX.php
UTF-8
1,044
3.734375
4
[]
no_license
<?php /** * 914. 卡牌分组 * Class HasGroupsSizeXSolution * https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards/ */ class HasGroupsSizeXSolution { /** * 分组后求最大公约数 * @param Integer[] $deck * @return Boolean */ function hasGroupsSizeX($deck) { if (count($deck) == 1) { ...
true
df8e3dfa8d64c55043e7d0b9b8c94aa8081b5f04
PHP
FLawrence/contextus
/tei/shakespeare/Editor/bc-fourstore-php/FourStore/FourStore_StorePlus.php
UTF-8
6,932
2.71875
3
[]
no_license
<?php /** * @version 0.1.0.0 * @package Bourdercloud/4store-PHP * @copyright (c) 2010 Bourdercloud.com * @author Karima Rafes <karima.rafes@bordercloud.com> Copyright (c) 2010 Bourdercloud.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
true
9ccc9b80b17c51083776af5be776ad1806f805ac
PHP
nlopezm/TPO_IA
/app/src/Service/ImageService.php
UTF-8
1,601
2.734375
3
[]
no_license
<?php namespace App\Service; use Aws\S3\S3Client; class ImageService { protected $s3; function __construct() { $this->s3 = new S3Client([ 'version' => '2006-03-01', 'region' => 'us-east-1', 'credentials' => array( 'key' => S3_KEY, ...
true
51ab07e23bd4abfc7256d167e70b516f961dbfba
PHP
avin/library
/app/Models/User.php
UTF-8
911
2.546875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Database\Eloquent\SoftDeletes; class Use...
true
8f52e82642402c257290a5ad3b5636fcce6778c2
PHP
TYPO3-svn-archive/formhandler
/Classes/Interceptor/CombineFields.php
UTF-8
2,738
2.734375
3
[]
no_license
<?php namespace Typoheads\Formhandler\Interceptor; /* * * This script is part of the TYPO3 project - inspiring people to share! * * * * TYPO3 is free software; you can redist...
true
ca838d4468fac9dcd09ed21ea63a40c2bef95ac1
PHP
BitLucid/ninjawars
/deploy/tests/unit/SmartyPluginUnitTest.php
UTF-8
2,812
2.703125
3
[]
no_license
<?php declare(strict_types=1); require_once(CORE . '/plugins/function.cachebust.php'); require_once(CORE . '/plugins/modifier.replace_urls.php'); require_once(CORE . '/plugins/modifier.markdown.php'); require_once(CORE . '/plugins/function.getTurnCost.php'); require_once(CORE . '/plugins/function.health_percent.php')...
true
5637958055cf0a05aeebf5a50f6ad9aa3f8bcc68
PHP
jac7mc/Community_Honor_Fund_Directory
/login.php
UTF-8
2,848
2.578125
3
[ "MIT" ]
permissive
<?php session_start(); if (isset($_SESSION['registerSuccessful'])) { //Displays the message for when a new account has been registered print $_SESSION['registerSuccessful']; unset($_SESSION['registerSuccessful']); } if (isset($_SESSION['loginError'])) { //Displays the message for when the user wasn't able to login ...
true
0a0a06f629fdc9d6149d5b1b1ce2c9e13bf2c52a
PHP
tectronics/platinum-primalinea-andre
/platinum/admin/CrudAdministradores.php
UTF-8
4,339
2.53125
3
[]
no_license
<?php /** * CRUD de administradores * * @author André Coura <andreccls@gmail.com> * @since 25/07/2011 */ //necessário para todas as páginas do admin (facilitador) include("defaultAdmin.php"); require_once(PASTA_DAO."Administrador.class.php"); //verificação se o usuário esta logado, cado contrário, este será redi...
true
88d4e96b3f29a2adb1b7521d7eb6e018cf3df90c
PHP
janephp/janephp
/src/Component/OpenApi3/Tests/fixtures/github/expected/Model/ImportProjectChoicesItem.php
UTF-8
1,715
2.75
3
[ "MIT" ]
permissive
<?php namespace Github\Model; class ImportProjectChoicesItem extends \ArrayObject { /** * @var array */ protected $initialized = array(); public function isInitialized($property) : bool { return array_key_exists($property, $this->initialized); } /** * * * @var...
true
f0b2bbc8a104519c6d7d2691425c7ad25c27321b
PHP
XScarletAngel/copy
/application/Common/Service/SubjectsService.class.php
UTF-8
370
2.765625
3
[]
no_license
<?php namespace Common\Service; use Common\Model\SubjectsModel; class SubjectsService { /** * @param $where 条件(数组) * @param $field 字段 * @return array */ public function getall($where, $field="id, sub_code, sub_name, sub_status") { $sub = new SubjectsModel; $categorys = $sub->getall($where, ...
true
dd1a2f7b68a190afdae4744777702cc56ac4b9cd
PHP
david-gap/classes
/classes/prefix_WPimgAttr/class.prefix_WPimgAttr.php
UTF-8
10,029
2.625
3
[]
no_license
<? /** * * * Wordpress - add custom fields for alt tag translations * https://github.com/david-gap/classes * Author: David Voglgsang * @version 2.1 * */ /*======================================================= Table of Contents: --------------------------------------------------------- 1.0 INIT & VARS 1....
true
61b6cbb316a0af9b507d0caa3cace45f516ab80a
PHP
bbarclay/myzenvei
/components/com_community/libraries/template.php
UTF-8
9,679
2.5625
3
[]
no_license
<?php /** * @package JomSocial * @subpackage Core * @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved! * @license http://www.jomsocial.com Copyrighted Commercial Software */ (defined('_VALID_MOS') or defined('_JEXEC')) or die('Direct Access to this location is not allowed.'); /** * Templa...
true
c4b24bea0c94388675566f359d4f7e8c3ca72886
PHP
erdenbatuhan/vailaball.me
/VailaBall_DATA/Mobile_DATA/lb721gf126f1267e2neh21w21gd13f31f13.php
UTF-8
1,389
2.9375
3
[ "MIT" ]
permissive
<?php /* ========== VARIABLES FOR HOST ========== */ $hostName = "localhost"; $hostUser = "root"; $hostPassword = "fgvttv5yybb1"; $database = "VailaBall"; // Make Connection $connection = new mysqli($hostName, $hostUser, $hostPassword, $database); // Check Connection if...
true
cbe0770574fe957811376c7f27b90e4d19de8ab4
PHP
AlexandreDrain/symfony_semaine_deux
/src/Entity/Event.php
UTF-8
1,628
2.5625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\EventRepository") */ class Event { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=128) ...
true