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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0f32d120aff64cfef9bfabc1c2158fdd29d8bf09 | PHP | dafnenavita/Online-Course-Registration- | /project_final/deleteCourseImpl.php | UTF-8 | 850 | 2.53125 | 3 | [] | no_license | <?php
include 'database_config.php';
$id = trim($_POST['id']);
//echo $id;
try
{
$sql = "UPDATE section SET flag = '1' WHERE section_id='$id'";
$row = mysqli_query($db_con,$sql);
if($row)
{
$sql_s = "SELECT * from section where section_id='$id'";
$result1 = mysqli_q... | true |
5fd7dd5cb1c3e781953ef295063fadc1715058a8 | PHP | SebEdena/app-homisep | /MVC/model/classes/cemac.php | UTF-8 | 3,047 | 3.34375 | 3 | [] | no_license | <?php
/**
* Classe CeMac permettant de décrire l'objet CeMac
*/
class CeMac{
private $idCemac;
private $numeroSerie;
private $statut;
private $typeCapteur;
private $idPiece;
/**
* constructeur de l'objet CeMac
* @param $data contenant toutes les données d'un CeMac
*/
... | true |
9bde089ed8a17ac64d8853e58adb2d3b0a75715d | PHP | juananguillo/PulpWorld | /clases/obras.class.php | UTF-8 | 1,701 | 2.875 | 3 | [] | no_license | <?php
class obras
{
private $id;
private $autor;
private $titulo;
private $sinopsis;
private $publico;
private $lecturas;
private $estado;
private $likes;
private $portada;
private $terminada;
public function setid($id) {
$this->id = $id;
}
public... | true |
062641512af946294e0a29aebdff85ed0ab70625 | PHP | Quost/ifc-ws-rest | /api/read/GET.php | UTF-8 | 2,784 | 2.515625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-M... | true |
a86fdb9c3f79371a99bb5136f2346f7d1cb1dd67 | PHP | TrendingUpward/mufflerandgo | /classes/framework/db/ConnectionManager.php | UTF-8 | 538 | 2.5625 | 3 | [] | no_license | <?php
////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Apart of AceDealerServices.com.
* User: bslaght
* Date: 6/19/13
* Time: 10:55 AM
* Owned by Auto Credit Express
*/
namespace Classes\framework\db;
abstract class ConnectionManager {
//Crea... | true |
9d4ce49f3f90e37d28e9f35f9afb4a51e5ce6310 | PHP | jobayed24/after-trait | /Practise_PHP/oop foundation/namespace/earth1.php | UTF-8 | 115 | 2.765625 | 3 | [] | no_license | <?php
namespace Astronomy\Earth1;
class Earth{
function getName(){
echo "My name is Earth1 \n";
}
} | true |
dffa6f479797fa0e7db65e3f6b9ebc49aed695f2 | PHP | BlackSou/php-learning | /2019-03-18/App/Vendor/Fight.php | UTF-8 | 401 | 3.09375 | 3 | [] | no_license | <?php
namespace App\Vendor;
/**
* Class Fight
*/
class Fight
{
/**
* @param Healthable $obj1
* @param Healthable $obj2
*
* @return string
*
* @throws \Exception
*/
public static function fightWinner(Healthable $obj1, Healthable $obj2): string
{
return random_in... | true |
c942daa28fa2c168153a89711e26c3e0e14d8e2a | PHP | slowcodes/ci_sms | /application/models/Level_subject_model.php | UTF-8 | 1,463 | 2.640625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
class Level_subject_model extends CI_Model
{
function __construct()
{
parent::__construct();
$this->db->cache_on();
}
/*
* Get level_subject by id
*/
function get_level_subject($id)
{
return $this->db->get_where('level_subjects',array('id'=>$id))->... | true |
7351f768d948d5af8262aadffc17c29399633713 | PHP | andredss99/tcc_web | /classes/Tarefa.php | UTF-8 | 3,228 | 2.71875 | 3 | [] | no_license | <?php
require_once "classes/Conexao_sql.php";
class Tarefa extends Conexao_sql {
private $id;
private $descricao;
private $funcionario;
private $evento;
private $prazo;
private $status;
private $query;
public function getId() {
return $this -> id;
}
public function setId($id) {
$this -> id = $id;
}
... | true |
08353c0cf6dff89c9b84a95f2a6b0340a1fb664b | PHP | dimono777/tsplugin | /widgets/welcome_form.php | UTF-8 | 2,877 | 2.75 | 3 | [] | no_license | <?php
namespace tradersoft\widgets;
use tradersoft\widgets\base\Widget;
use tradersoft\widgets\base\TemplateWithFormRendering;
/**
* Registration form widget.
*
* $instance properties:
* 'ajaxEnable' => bool;
* 'template' => string; path to template
* 'js' => string; path to js file
* ... | true |
d6613c33addd1d3b6bb029064052a4647927c2a4 | PHP | JEND-CODES/API-PROJECT | /src/Controller/Operations/NewClientAddConsumer.php | UTF-8 | 2,154 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App\Controller\Operations;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use App\Entity\Client;
use App\Entity\Consumer;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use App\Service\MailSender;
class NewClientAd... | true |
1ac06763ed6a409ee5c55a1f98326f573fa934a4 | PHP | levonliu/packages-for-laravel | /src/Service/Request/Exceptions/CustomHttpException.php | UTF-8 | 826 | 2.671875 | 3 | [] | no_license | <?php
namespace Levonliu\Packages\Service\Request\Exceptions;
use Symfony\Component\HttpKernel\Exception\HttpException;
class CustomHttpException extends HttpException
{
/**
* @var int
*/
protected $customCode;
protected $errors;
public function __construct($customCode, $message = null, $er... | true |
ed074010c76a3afb104f3cbce3c7252e00f78881 | PHP | lopji/SpaceRisk | /client/controller/lobby.php | UTF-8 | 2,032 | 2.53125 | 3 | [] | no_license | <?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.
*/
namespace controller;
use library\parser;
use library\sql;
/**
* Description of lobby
*
* @author rocha
*/
class lobby ex... | true |
d013a05fe56ace9bfe7be7faa2006a766d5c0cd8 | PHP | sillsdev/web-languageforge | /src/Site/Controller/Redirect.php | UTF-8 | 4,139 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace Site\Controller;
use Api\Library\Shared\Palaso\Exception\UserUnauthorizedException;
use Api\Library\Shared\SilexSessionHelper;
use Api\Model\Shared\ProjectModel;
use Api\Model\Shared\UserModel;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Re... | true |
d19cb1237789b3e2236bfc0a5bbc7b75bd8825d9 | PHP | maisto03/movie-app | /app/included/cast.included.php | UTF-8 | 821 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
if (isset($_POST['cast'])) {
$cast = $_POST['cast'];
$castLimit = count($cast);
$_ENV = $_POST['env'];
// re include all the needed classes
include_once __DIR__ . "/../core/dbh.php";
include_once __DIR__ . "/../core/model.php";
include_once __DIR__ . "/../models/movie.model.php";
} el... | true |
baaa33a90e0055eb5e088209c3bda83d75ff222d | PHP | oleg-shumar/wpm-coupons-api | /wpm-coupons-api.php | UTF-8 | 6,639 | 2.703125 | 3 | [] | no_license | <?php
/**
* Coupons API
*
* This plugin makes coupons connected to issuer APIs
*
* Plugin Name: Coupons API
* Plugin URI: https://wp-masters.com/
* Version: 1.0
* Author: WP Masters
* Description: This plugin makes coupons connected to issuer APIs
* Text Domain: wpm-coupons-api
*
* @author WP Masters
... | true |
a178e4541916e541935631a0e4b3e00814af3cd5 | PHP | fengzyz/design-patterns | /SafeComposite/Client.php | UTF-8 | 1,020 | 2.5625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: shuyu
* Date: 2019/12/31
* Time: 11:30
*/
namespace Fengzyz\DesignPatterns\SafeComposite;
require __DIR__.'/../vendor/autoload.php';
class Client
{
/**
* 运行
*/
public function run()
{
$designPatterns = new Dir('design-patterns');
$cl... | true |
95f35e34462e750770ca1987e48016c6002bc023 | PHP | adriang1174/mipanel | /cuenta/inc/uri.php | UTF-8 | 2,589 | 3.203125 | 3 | [] | no_license | <?
class uri
{
var $uri;
var $excluded;
var $flags;
function uri( $uri = false)
{
if ( $uri)
$this->uri = $uri;
else
$this->uri = $_SERVER[ "REQUEST_URI"];
$this->flags = array( );
}
function exclude_params( $exclude_params = false)
{
if ( !$this->uri)
return false;
... | true |
842404c0c69db290451e8eb24c2ab26d11fbed87 | PHP | kpurrmann/buecherverwaltung | /application/entities/Status.php | UTF-8 | 713 | 2.8125 | 3 | [] | no_license | <?php
namespace Buecherverwaltung\Entities;
require_once 'Entity.php';
require_once 'Book.php';
/**
* Satus
*
* @Table(name="status")
* @Entity
*/
class Status extends Entity
{
/**
* @var integer
*
* @Column(name="id", type="integer", nullable=false)
* @Id
* @GeneratedValue(strateg... | true |
57affe4f79f3256aadc9bc43a55d76660ee67644 | PHP | aborgessouza/processo-seletivo-kabum | /App/Controllers/AdministradorController.php | UTF-8 | 7,324 | 2.65625 | 3 | [] | no_license | <?php
use \Core\Controller;
use \Library\Request;
use \Library\Input;
use \Library\Encryption;
use \Library\Session;
use \Library\Url;
Class AdministradorController extends Controller {
private const PAINEL_ADMINISTRADOR = 'administrador/painel';
private const PAINEL_USUARIO = 'usuario/painel';
private $h... | true |
31f9fc9d9ecf60ba7cced7bbea0d47ffbcde1e94 | PHP | rahulyhg/php-3 | /rew/rew-framework-dev/database/seeds/Faker/Blog/TagFaker.php | UTF-8 | 522 | 2.65625 | 3 | [] | no_license | <?php
namespace REW\Seed\Faker\Blog;
use REW\Seed\Faker\AbstractFaker;
/**
* TagFaker
* @package REW\Seed\Faker
*/
class TagFaker extends AbstractFaker
{
/**
* Fake blog tag
* @return array
*/
public function getFakeData()
{
$faker = $this->getFaker();
$link = $faker->u... | true |
d335c47076fd3f833b3e3f0f429d6197a7c60b5c | PHP | michaeljoyner/edible | /src/ContentRepository.php | UTF-8 | 1,546 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: mooz
* Date: 1/26/16
* Time: 8:56 AM
*/
namespace Michaeljoyner\Edible;
use Michaeljoyner\Edible\Models\Page;
class ContentRepository
{
public static function makePage($name, $description = null)
{
return Page::create(['name' => $name, 'description' => $... | true |
ba1197e61647601c830ecaaad467b13a1b88ea8a | PHP | kalesh13/zerodrop | /app/Repositories/Subscriber/SubscriberRepo.php | UTF-8 | 3,155 | 2.859375 | 3 | [] | no_license | <?php
namespace App\Repositories\Subscriber;
use App\Models\Subscriber;
use Illuminate\Support\Collection;
use App\Traits\HasSearchAndFilter;
use App\Repositories\SimpleModelRepo;
class SubscriberRepo extends SimpleModelRepo implements ISubscriberRepo
{
use HasSearchAndFilter;
/**
* Activates the subsc... | true |
6b053d8a8e1f0155a2073a64b7b06a9aeb5c472b | PHP | zetas/FibonacciAPI | /app/Http/Controllers/API/V1/NumberController.php | UTF-8 | 918 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\API\V1;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Fibonacci;
use Illuminate\Support\Facades\Validator;
class NumberController extends Controller
{
public function fibonacciSequence(Request $request) {
$this->validate($request, [
... | true |
fd9f7c072cc10821c64cc685b3ff14aa7661cee6 | PHP | deniskoronets/ZNU-Journals | /protected/views/journals/index.php | UTF-8 | 3,001 | 2.640625 | 3 | [] | no_license | <?php
/* @var $this JournalsController */
/* @var $dataProvider CActiveDataProvider */
/* - Стартовая страница системы - список журналов
Для каждого журнала ссылки
"Выпуски",
"Информация о журнале",
"Отправить статью",
"Информация для авторов".
*/
?>
<h1>Журналы</h1>
<!-- стили временн... | true |
38b8fecf1b83e73b080ad33fc1e7cc6109f91f22 | PHP | sec-js/CloudFlare-CC-POC | /server/cc.php | UTF-8 | 1,039 | 2.59375 | 3 | [] | no_license | <?php
if (php_sapi_name() != 'cli') {
die('This application must be run on the command line.');
}
require_once __DIR__.'/config.php';
while(true) {
echo 'cmd: # ';
$handle = fopen ("php://stdin","r");
$line = fgets($handle);
switch(trim($line)) {
case 'list':
$nodes = json_decode(file_get_conten... | true |
dac6b0b7f41db9f4120aafaf4483e6e73e36aa50 | PHP | underhilllabs/captains-app-l3 | /application/controllers/captain.php | UTF-8 | 678 | 2.53125 | 3 | [
"MIT",
"LicenseRef-scancode-dco-1.1"
] | permissive | <?php
class Captain_Controller extends Base_Controller {
public function action_update($id) {
$id += 1;
$c = Captain::find($id);
$data = Input::json();
$c->votes = $data->votes;
$c->save();
var_dump($data);
return "Why not, Zoidberg? Well, " . $c->name . " he's got votes: " .$data->votes;... | true |
f38ee1a1e1ec8f520d70a6c64b64bdaffeba9c9b | PHP | housemeow/Leetcode | /977_Squares of a Sorted Array/tkd9714.php | UTF-8 | 293 | 3.625 | 4 | [] | no_license | class Solution {
/**
* @param Integer[] $A
* @return Integer[]
*/
function sortedSquares($A) {
$ans = [];
foreach($A as $value)
{
array_push($ans, $value * $value);
}
sort($ans);
return $ans;
}
}
| true |
b3a3d941fabc4955a06992a2e198cef16af391da | PHP | maximProjects/apiato | /app/Containers/Photo/Tests/Unit/CreatePhotoTest.php | UTF-8 | 2,880 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Containers\Photo\Tests\Unit;
use App;
use App\Containers\Photo\Tasks\CreatePhotoTask;
use App\Containers\Photo\Tests\TestCase;
use Illuminate\Support\Collection;
use App\Containers\Media\Tasks\CreateMediaTask;
use Illuminate\Http\UploadedFile;
use App\Containers\Photo\Models\Photo;
/**
* Class C... | true |
cec4741eba0a59fafa67c8807b9901a0794d0337 | PHP | bytic/services-google-analytics | /src/Renderer/Script/AnalyticsJs/SendCommand.php | UTF-8 | 721 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace ByTIC\GoogleAnalytics\Tracking\Renderer\Script\AnalyticsJs;
use ByTIC\GoogleAnalytics\Tracking\Data\Tracker;
use ByTIC\GoogleAnalytics\Tracking\Renderer\Script\AnalyticsJs;
/**
* Class SendCommand
* @package ByTIC\GoogleAnalytics\Tracking\Renderer\Script\AnalyticsJs
*/
class SendCommand
{
/**
... | true |
4eb2cb1787822cafc2ec0903f47f39e0ae06b30a | PHP | Laloy-P/forumPhp | /function/inscription.class.php | UTF-8 | 2,737 | 2.78125 | 3 | [] | no_license | <?php
//session_start();
include_once 'function.php';
class inscription{
private $pseudo;
private $email;
private $mdp;
private $mdpConfirm;
private $bdd;
public function __construct($pseudo,$email,$mdp,$mdpConfirm){
$pseudo=htmlspecialchars($pseudo);
... | true |
c9825a11a0dfe35978c9ba4e2d4a3f1d8cbc849d | PHP | Veremes/vMap | /vas/rest/ws/vmap/VmapGroup.class.inc | UTF-8 | 4,512 | 2.59375 | 3 | [] | no_license | <?php
require_once 'Vmap.class.inc';
require_once __DIR__.'/../../class/vitis_lib/Connection.class.inc';
/**
* \file VmapGroup.class.inc
* \class VmapGroup
*
* \author Armand Bahi <armand.bahi@veremes.com>.
*
* \brief This file contains the VmapGroup php class
*
* This class defines operation for one Group
... | true |
0491d9bb102c98d0251c5aaf74bd69ea8f8b74ee | PHP | conheocon25/thanhbaothvl | /banhrehoangthuy/mvc/command/UpdateResource.php | UTF-8 | 1,130 | 2.65625 | 3 | [] | no_license | <?php
namespace MVC\Command;
class UpdateResource extends Command {
function doExecute( \MVC\Controller\Request $request ) {
require_once("mvc/base/domain/HelperFactory.php");
//------------------------------------------------------------
$mResource = new \MVC\Mapper\Resource();
... | true |
6d44c05524e8970afc69cdf8e93911aa5c072f9b | PHP | voximplant/apiclient-php | /src/Interfaces/AdminUsersInterface.php | UTF-8 | 2,422 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Voximplant\Interfaces;
interface AdminUsersInterface
{
/**
* @method Adds a new admin user into the specified parent or child account.
*/
public function AddAdminUser(\Voximplant\Resources\Params\AddAdminUserParams $params);
/**
* @method Deletes the specified admin user.
... | true |
4ff84f82d97f61fe35260c66d1f3ef4bb7bb377c | PHP | Mihai-Munteanu/UndeLucram | /database/seeders/CreateListGroupSeeder.php | UTF-8 | 802 | 2.625 | 3 | [] | no_license | <?php
namespace Database\Seeders;
use App\Models\ListGroup;
use Illuminate\Database\Seeder;
class CreateListGroupSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
for ($i = 1; $i < 11; $i++) {
$listGroup = ListGroup::... | true |
52e8e9abe3d443dfee93f33c3abe99a475c54e22 | PHP | CiscoVE/DirectoryBundle | /Directory/DirectoryManager.php | UTF-8 | 7,674 | 2.75 | 3 | [] | no_license | <?php
namespace CiscoSystems\DirectoryBundle\Directory;
use CiscoSystems\DirectoryBundle\Directory\QueryRepository;
use Psr\Log\LoggerInterface;
class DirectoryManager
{
protected $configuration;
protected $baseRepositoryClassName;
protected $connectedRepositories;
protected $tokenStorage... | true |
abdf59a830b4a4ba90e1b75b587ba781003ee689 | PHP | wwwadminwww/Interview | /SB/dataToCsv.php | UTF-8 | 346 | 2.828125 | 3 | [] | no_license | <?php
$arr = array ("A Public 100",
"B Strong 101",
"C Small -300",
"D Big 201",
"E Bigger 400",
"F Best -100",
"G Smallest 200");
$fp = fopen('file.csv', 'w');
for ($i=0;$i<count($arr);$i++){
//echo $arr[$i];
$t = explode(" ", $arr[$i]);
if ($t[2]>0){
fputcsv($fp, $t);
var_dump($t);
echo "<br />... | true |
99a0c7afc51fc82c62008c620aa8e99d6cf5b83f | PHP | dragon-D/leetcode | /98.php | UTF-8 | 3,421 | 3.53125 | 4 | [] | no_license | <?php
/**
* @author: Dragon
* @copyright Copyright (c) 2019, Infrasys International Ltd.
*/
/**
* Definition for a binary tree node.
* class TreeNode {
* public $val = null;
* public $left = null;
* public $right = null;
* function __construct($value) { $this->val = $value; }
* }
*/
class Tr... | true |
cfe849b20dc73d594e838004750d7f4099c1d1ec | PHP | eno2050/E-admin | /src/grid/ActionMode.php | UTF-8 | 1,067 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Eadmin\grid;
use Eadmin\component\basic\Dialog;
use Eadmin\component\basic\Drawer;
use Eadmin\component\basic\Html;
use Eadmin\component\basic\Router;
class ActionMode
{
protected $component;
protected $form;
protected $detail;
public function __construct()
{
$this->com... | true |
e1e0d64bb4ef8d127c09c0fbae33da3f6e5d241a | PHP | Faridbabayev001/cbar-currency | /src/Drivers/Driver.php | UTF-8 | 3,036 | 3.015625 | 3 | [
"MIT"
] | permissive | <?php
namespace FaridBabayev\CBARCurrency\Drivers;
use FaridBabayev\CBARCurrency\Collections\CurrencyCollection;
use FaridBabayev\CBARCurrency\Contracts\CurrencyInterface;
use FaridBabayev\CBARCurrency\Exceptions\XmlParseErrorException;
use SimpleXMLElement;
abstract class Driver implements CurrencyInterface
{
/... | true |
dece20780334b71c1ace535a7dd6ffd67704f0a7 | PHP | bhaskarpramanik/virgin-product | /Animus/classes/APICore/AnimusHeaderInfoHandler.php | UTF-8 | 4,235 | 2.875 | 3 | [] | no_license | <?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 AnimusHeaderInfoHandler
*
* @author bhaskarpramanik
*/
class AnimusHeaderInfoHandler ... | true |
a20b2d9b1676e50e11ddbd11b1c48023d96ca5a7 | PHP | oscarpon/ClubPadel | /models/Usuario_Model.php | UTF-8 | 4,736 | 2.84375 | 3 | [] | no_license | <?php
class UsuarioModel{
var $email;
var $password;
var $nombre;
var $apellidos;
var $rol;
var $genero;
var $mysqli;
function __construct($email,$password,$nombre,$apellidos,$rol,$genero){
$this->email=$email;
$this->password=$password;
$this->nombre=$nombre;
... | true |
3975c6c519d380f84ef11cb5247220cc50b2e0e1 | PHP | tomlerendu/MicroAPI | /tests/MicroAPI/RouteTest.php | UTF-8 | 1,115 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace MicroAPITests;
use \MicroAPI\Route;
class RouteTest extends \MicroAPITestCase
{
public function testGettingWildcards()
{
$wildcards = ['foo'=>'hello', 'bar'=>'world'];
$route = new Route();
$route->setWildcards($wildcards);
$this->assertEquals($route->getWildc... | true |
c951395e6bcd5f84294a40f1445ad63ba564e27e | PHP | inetstudio/products | /src/Console/Commands/ProcessGoogleFeeds.php | UTF-8 | 10,848 | 2.546875 | 3 | [] | no_license | <?php
namespace InetStudio\Products\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use InetStudio\Products\Models\ProductModel;
use InetStudio\Products\Models\ProductLinkModel;
/**
* Class ProcessGoogleFeeds.
*/
class ProcessGoogleFeeds extends Command
{
/**
* Им... | true |
b3e7844f17bd31ffee03e414211aa7c85ac31e86 | PHP | AJFiori/PHPAdvClassSpring2016- | /PhpProject1/week2/lab/part-2/models/Validator.php | UTF-8 | 1,548 | 3.234375 | 3 | [] | no_license | <?php
/**
* Description of Validator
*
* @author GFORTI
*/
class Validator {
/**
* A method to check if a name is valid.
*
* @param {String} [$fullname] - must be a valid name
*
* @return boolean
*/
public function fullNameIsValid($fullname) {
return ( preg... | true |
16abeca385c3f648233db27fd6d68a4288658c3f | PHP | mohamadihsan/mutiara_packaging | /kelola/produk/index.php | UTF-8 | 4,790 | 2.5625 | 3 | [] | no_license | <?php
error_reporting(E_ALL & ~E_NOTICE);
session_start();
include '../../tampilan/header_footer/index.php';
include '../../fungsi/produk/index.php';
include '../../koneksi/index.php';
if (isset($_POST['simpan'])) {
TambahDataProduk();
if ($_SESSION['status_operasi_produk'] == "berhasil_menyimpan") {
?><body onloa... | true |
77cd5c30e40a9e3c0161ee69f97799972a0d495d | PHP | sranisback/statb | /src/Entity/GameDataStadium.php | UTF-8 | 1,325 | 2.703125 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\GameDataStadiumRepository")
*/
class GameDataStadium
{
/**
* @ORM\Id
* @var int|null
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private ?int $id = null;
... | true |
0692e9771f8d5a2e2f21c6ed8f4e89c26b2c9e3d | PHP | CactusERP/Cactus-CMS | /app/Controller/Component/FileUploadComponent.php | UTF-8 | 6,522 | 2.53125 | 3 | [] | no_license | <?php
class FileUploadComponent extends Object{
var $fileModel = null;
var $uploadDir = 'Photos';
var $fileVar = 'image';
var $pathname = 'anestis';
var $allowedTypes = array(
'image/jpeg',
'image/gif',
'image/png',
'image/pjpeg',
'image/x-png'
);
var $fields = array('image'... | true |
a789d6bdd90dc3572292320895dbfeab870428d2 | PHP | Takyo0430/A | /php_libs/class/MainModel.php | UTF-8 | 7,513 | 3 | 3 | [] | no_license | <?php
class MainModel extends BaseModel {
//----------------------------------------------------
// 会員情報をユーザー名で検索
//----------------------------------------------------
public function get_authinfo($username){
$data = [];
try {
$sql= "SELECT * FROM user WHERE username = :us... | true |
8dca6078164b5a3cbcc64a0610375bfdf835779c | PHP | kwnovi/besked | /app/view.php | UTF-8 | 1,835 | 3.125 | 3 | [
"WTFPL"
] | permissive | <?php
/**
* View
*
* Classe permettant de générer proprement des pages à partir de templates.
*
* Licensed under The WTFPL License
*
* @license http://www.wtfpl.net/txt/copying/
* @author Lucien Varacca <k.wnovi@gmail.com>
* @author Quentin Le Bour <q.lebour@gmail.com>
*/
// TODO
// Permettre d'injecter tel ... | true |
183c99a62e1e6cf9e7681138f2e3ca08f5b43afe | PHP | daiigroup-github/intranet | /protected/controllers/ExamController.php | UTF-8 | 9,982 | 2.796875 | 3 | [] | no_license | <?php
class ExamController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout = '//layouts/cl1';
/**
* @return array action filters
*/
public function f... | true |
fd875847290ccfe4501edb05cacb4f2484c84493 | PHP | intpro/quickstart | /src/Concept/Command/Image/ImageCommand.php | UTF-8 | 405 | 2.875 | 3 | [
"MIT"
] | permissive | <?php namespace Interpro\QuickStorage\Concept\Command\Image;
abstract class ImageCommand
{
public $block_name;
public $image_name;
/**
* @param string $block_name
* @param string $image_name
*
* @return void
*/
public function __construct($block_name, $image_name)
{
... | true |
408cc5893bbffc8036e31b97d24b4875b3197083 | PHP | CaterDiem/bureau-cms | /src/CMS/SharedBundle/Entity/_unused/User_1.php | UTF-8 | 1,200 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace CMS\SharedBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*/
class User
{
/**
* @var integer
*/
private $id;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $groups;
/**
* Constructor
*/
public function __construct()
... | true |
c80472aa23c34010f3717fcc7a1c52cbf9e9c28a | PHP | CIGUGent/TRAPID | /src/src/app/controllers/components/statistics.php | UTF-8 | 6,361 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | <?php
class StatisticsComponent extends Object{
function makeVennOverview($transcript2labels){
$result = array();
foreach($transcript2labels as $transcript=>$labels){
$labels = array_unique($labels);
sort($labels);
$label_string = implode(";;;",$labels);
if(!array_key_exists($l... | true |
f3b49a0906e4940d1d1834f96e22edf8e11ce933 | PHP | blikstiender/tuftsdailyWeb | /wp-content/themes/Newsmag/includes/wp_booster/td_video_playlist_support.php | UTF-8 | 9,733 | 2.8125 | 3 | [] | no_license | <?php
/* ----------------------------------------------------------------------------
tagDiv video playlist support
- creates the array to be saved in post meta
*/
class td_video_playlist_support {
static $td_playlist_video_key = 'td_playlist_video';
//put the filter to get data when ... | true |
a8f0e80749c6809c3ad74ad556d892cf9f1182ff | PHP | v3u3i87/run_cli | /bin/LinkPdoMysql.php | UTF-8 | 3,384 | 2.765625 | 3 | [] | no_license | <?php
class LinkPdoMysql{
/**
* 对象
*
* @var unknown
*/
public $_linkID = null;
public $_sql = '';
public $_query = null;
public function __construct($link)
{
try {
$dns = "mysql:dbname={$link ['name']};host={$link ['host']};port={$li... | true |
a88e4085f682c788d91899bb4c08393bd1b1fd71 | PHP | luism/fedeh | /application/classes/Model/Persona.php | UTF-8 | 3,941 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Modelo Persona
*
* EL nombre del modelo debe conicidir con la tabla pero en singular
*
*/
class Model_Persona extends Model_ORM_Template {
protected $_has_one = array(
'socio' => array('foreign_key' => 'persona_id'),
'judici... | true |
6570f451842a793a7881380b6d3f67a98af865a6 | PHP | mingo6/BtcRobot | /app/component/stock/index/kd.php | UTF-8 | 956 | 2.671875 | 3 | [] | no_license | <?php
namespace App\Component\Stock\Index;
use App\Component\Stock\Index;
use App\Component\Stock\Tool;
class KD extends Index
{
protected function call(array $data, int $n = 9, int $m1 = 3, int $m2 = 3): array
{
if (empty($data)) {
return ['k' => 0, 'd' => 0];
}
$data = ... | true |
8055ed60d76165203521fc748bc0a6b647e0ebee | PHP | soitun/wizard | /app/Components/Search/Driver.php | UTF-8 | 646 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App\Components\Search;
use App\Repositories\Document;
interface Driver
{
/**
* 删除文档索引
*
* @param $id
*
* @return void
*/
public function deleteIndex($id);
/**
* 同步索引
*
* @param Document $doc
*
* @return void
* @throws \Exception... | true |
9bb696011864227c5087d1612e3632754f873f2d | PHP | akerr3/PHP-SQL | /project/homepage.php | UTF-8 | 1,240 | 2.59375 | 3 | [] | no_license | <?php
$Name = $_POST['username'];
$Password = $_POST['pass'];
$user = 'root';
$pass = '';
$db = 'medicine';
$conn = mysqli_connect('localhost',$user, $pass, $db);
if(!$db)
{
}
if(!mysqli_select_db($conn, 'user'))
{
}
$check = "SELECT username, password FROM user";
$result1 = mysqli_... | true |
b290e4f9985e9a0c51606a43040cdbc28a4f826b | PHP | rapani/dclaim | /konten/import.php | UTF-8 | 5,859 | 2.6875 | 3 | [] | no_license |
<?php
include "./lib/config.php";
include "./PHPExcel.php";
if (isset($_POST['rajal'])){
$random = "file_upload_".rand(11111,99999);
$target_file = $random.basename($_FILES["file_excel"]["name"]);
$uploadOk = 1;
if (move_uploaded_file($_FILES["file_excel"]["tmp_name"], $target_file)) {
i... | true |
9f7dd9067995649a3dcfd35d0b3df4822e32a60f | PHP | kudrvet/php-project-lvl1 | /src/games/Gcd.php | UTF-8 | 965 | 3.4375 | 3 | [] | no_license | <?php
namespace BrainGames\Games\Gcd;
use function BrainGames\Flow\flow;
use const BrainGames\Flow\ROUNDS_COUNT;
function getGCD($number1, $number2)
{
if ($number1 < $number2) {
[$number1, $number2] = [$number2, $number1];
}
do {
$remainder = $number1 % $number2;
if ($remainder... | true |
a8b97b02752c4bc308b4488d900a6cac25555ec8 | PHP | odarriba/sharing4 | /model/usuario.php | UTF-8 | 45,331 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
/////////////////////////////////////////////////
// Sharing4 - A Content Hub
/////////////////////////////////////////////////
// File: /model/usuario.php
//
// Clase que controla la creación, validación,
// y login de usuario, así como el control sobre
// el estado de autenticación actual del usuario
// duran... | true |
3ad35cb7c6b86660d27cf0e6de266d0e7cd98217 | PHP | ammarfaizi2/fbpkg | /src/Fbpkg/FacebookUtils/Login.php | UTF-8 | 1,885 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace Fbpkg\FacebookUtils;
use Fbpkg\UtilsFoundation;
/**
* @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2
* @license MIT
* @version 0.0.1
* @package \Fbpkg\FacebookUtils
*/
class Login extends UtilsFoundation
{
public const NO_ACTION = "no_action";
public const NO... | true |
a1fbaa5db0f7c0eb637f1bdbc666ed3c76fe929b | PHP | jrbdeveloper/phpArkitekton | /application/base.class.php | UTF-8 | 11,224 | 2.75 | 3 | [] | no_license | <?php
/**
* @copyright 2010 phpArkitekton
* @version 1.8.1
* @author John Bales
* @license This program 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
(... | true |
d4b779fdac9eb0bee79d2455a50eab91d9d1638d | PHP | dhamilton47/bowl-php-old | /app/Team.php | UTF-8 | 1,406 | 2.75 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Team extends Model
{
/**
* Don't auto-apply mass assignment protection.
*
* @var array
*/
protected $guarded = [];
/**
* The relationships to always eager-load.
*
* @var array
*/
protected $wit... | true |
f58644b61147ad1d575eed69d9c9402da25e7093 | PHP | yiisoft/yii-auth-client | /src/AuthAction.php | UTF-8 | 14,447 | 2.5625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
declare(strict_types=1);
namespace Yiisoft\Yii\AuthClient;
use Exception;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Throwable;
use ... | true |
add046fbc6d0b2e365ec46bdd08d182fbc0cc6d7 | PHP | heycms/php-rcphp | /RcPHP/Oauth/Weibo.class.php | GB18030 | 2,348 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Weibo class file.
*
* @author RcPHP Dev Team
* @copyright Copyright (c) 2013,RcPHP Dev Team
* @license Apache License 2.0 {@link http://www.apache.org/licenses/LICENSE-2.0}
* @package Oauth
* @since 1.0
*/
namespace RCPHP\Oauth;
defined('IN_RCPHP') or exit('Acces... | true |
9d6859da0279419cac763543cf9bf63da2b0b884 | PHP | Charlesbasis/Submitting-a-form_CharlesValerioHowlader | /name.php | UTF-8 | 195 | 2.5625 | 3 | [] | no_license | <?php
$name = $_POST['name'] or null;
if(empty(trim($name))){
header('Location: http://localhost/Submitting-a-form_CharlesValerioHowlader/index.php');
}
echo "Hi there, {$_POST['name']}!";
| true |
0f6b36ccb2197ac425591b00d902998ac81ccd3b | PHP | hsingying/CookingFresh | /topic_project/recipe_1.php | UTF-8 | 6,030 | 2.796875 | 3 | [] | no_license | <?php
error_reporting(0);
header("Content-Type:text/html; charset=utf-8");
// 連結資料庫
require_once 'dbconnect.php';
require_once 'Curl.php';
$db = DBConnect::init();
$id = $_GET['id'];
// 存放食譜名稱及食譜id的陣列
$recipe_array = array();
/* 先帶ID去資料庫找有沒有食譜 */
$Querysql = "SELECT DISTINCT(rn.`recipe_id`), `recipe_name`, `recipe... | true |
cf08f08ee0cdebbc417494f884e749aef23179af | PHP | Bytheway001/MB-Cobranzas-api | /App/Reports/Excel.php | UTF-8 | 2,459 | 2.796875 | 3 | [] | no_license | <?php
namespace App\Reports;
use \PhpOffice\PhpSpreadsheet\Style\Alignment;
use \PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
class Excel
{
private $folder = "../App/Files/";
protected $file;
protected $sheet = null;
private $r... | true |
7245598dee73b42e11dad0b81dc0b06080ec903e | PHP | Eduardin-Dev/WallPost | /includes/application/crud/Colecao_Post/post_add.php | UTF-8 | 1,918 | 2.640625 | 3 | [] | no_license | <?php
require_once '../../../db/dbconnection.php';
session_start();
if (!isset($_SESSION['usuario_logado'])) {
?>
<script>
window.location.replace("http://localhost/WALLPOST/");
</script>
<?php
}
try {
$comandoSQL = " SELECT idcolecao, idpost";
$comandoSQL = $comandoSQL . " from post_c... | true |
cccf969a500ce18e6410f8719a93c7e8185d4cbe | PHP | blitz-php/framework | /src/Exceptions/ValidationException.php | UTF-8 | 865 | 2.84375 | 3 | [] | no_license | <?php
/**
* This file is part of Blitz PHP framework.
*
* (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace BlitzPHP\Exceptions;
use BlitzPHP\Contracts\Http\StatusC... | true |
a551784dc3676c76f2e2594ce171c5a3133a6651 | PHP | nuzulfikrie/cake-notifications-1 | /src/Notifier.php | UTF-8 | 4,359 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/*
* @copyright (C) 2020 Michiel Keijts, Normit
*
*/
namespace CakeNotifications;
use CakeNotifications\Model\Entity\Notification;
use CakeNotifications\Transport\TransportFactory;
use Cake\ORM\TableRegistry;
use Exception;
use Cake\Core\Configure;
use CakeNotifications\Transport\AbstractTransport;
use Cak... | true |
b3fbfc354916a1616b3d3090e3c43bdd984fa7a0 | PHP | shimulshaikh/ecommerce | /app/ShippingCharge.php | UTF-8 | 430 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ShippingCharge extends Model
{
use HasFactory;
public static function getShippingCharges($country)
{
$shippingDetails = ShippingCharge::where('country', $country)->first()->toAr... | true |
7a713addada86fbe891d1b0f002ee71635cc476e | PHP | JMauris/grp5 | /models/Class.Inscription.php | UTF-8 | 4,407 | 2.9375 | 3 | [] | no_license | <?php
class Inscription {
private $idPersonne;
private $idRandonnee;
private $date;
private $heure;
private $idxStatus;
private $remarque;
/**
*
* @param unknown $idPersonne
* @param unknown $idRandonnee
* @param unknown $date
* @param unknown $heure
* @param unk... | true |
4a8403b534c165205a9bda402fc762cd5e8cf9ea | PHP | NimfaOlechka/Nimfa | /Serverside Programmering/includes/signin.inc.php | UTF-8 | 2,616 | 2.953125 | 3 | [] | no_license | <?php
//check if button was pressed
if (isset($_POST['submit-signin'])){
// set connection to db
require 'dbconn.inc.php';
// fetch users info frm form
$uName = $_POST['uid'];
$uEmail = $_POST['email'];
$uPsd = $_POST['psd'];
$uPsdR = $_POST['rpsd'];
//error handlers
//check if any of the fields are empty
... | true |
479a00abce1994bb7785eedcae8e5bc495dbcb71 | PHP | milypoint/forumyii2 | /migrations/m200506_155817_create_user_table.php | UTF-8 | 867 | 2.53125 | 3 | [] | no_license | <?php
use yii\db\Migration;
/**
* Handles the creation of table `user`.
*/
class m200506_155817_create_user_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('user', [
'id' => $this->primaryKey(),
'username' => $this-... | true |
1cd96f5e123c27742675d9f85971655938b3f3a3 | PHP | pudongping/larablog | /app/Http/Middleware/CheckAdminMenusMiddleware.php | UTF-8 | 1,316 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use Closure;
use App\Models\Auth\User;
class CheckAdminMenusMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $n... | true |
ac8bfacea49a7d8997ca84a536ad069fbfb0942d | PHP | JohnyBrine/NG | /includes/upload.inc.php | UTF-8 | 3,563 | 2.75 | 3 | [] | no_license | <?php
if (isset($_POST['novinkavole_submit'])) {
require_once "dbh.inc.php";
require_once "functions.inc.php";
// We grab the core file
$file = $_FILES['file'];
$fileName = $_FILES['file']['name'];
$fileTmpName = $_FILES['file']['tmp_name'];
$fileSize = $_FILES['file']['size'];
$fileErr... | true |
a23f900518d4240f4d2574cd2e38db82b7ca0142 | PHP | OUREAlexandra/deploy_vanillastory | /src/Controller/ProductController.php | UTF-8 | 4,312 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Controller;
use App\Model\ProductManager;
use App\Model\CategoryManager;
use App\Model\SizeManager;
use App\Model\PictureManager;
/**
* Class ProductController
*
*/
class ProductController extends AbstractController
{
/**
* Display product listing
*
* @return string
* @... | true |
35f132dcac571cd13949c552f527da6062bd5a25 | PHP | andrelqsantos/cadastro-de-carros | /classes/revisoes.class.php | UTF-8 | 806 | 2.9375 | 3 | [] | no_license | <?php
class Revisoes {
public function addRevisao($id_carro, $data) {
global $pdo;
try {
$sql = $pdo->prepare("INSERT INTO Revisao Values(default, ?, ?)");
$sql->bindValue(1, $id_carro);
$sql->bindValue(2, $data);
$sql->execute();
... | true |
a21ae431f4255115ba8542daadd3b9b607ea9d4a | PHP | PlorvenT/slack_bot | /core/ICommand.php | UTF-8 | 325 | 2.890625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: roman
* Date: 06.06.2018
* Time: 10:23
*/
namespace core;
/**
* Interface ICommand
* @package core
*/
interface ICommand
{
/**
* This method run command.
*
* @param string $textCommand
* @return mixed
*/
public function run($textCommand... | true |
5d95f91445d8aac24093f608f7d456d45e6c6405 | PHP | adrianig24/php | /Tienda/index.php | UTF-8 | 677 | 2.9375 | 3 | [] | no_license | <?php
require_once 'Clases/Persona.php';
$Persona1 = new Persona();
$Persona1->obtenerEdad(1994);
$Persona1->setNombre("adri");
require_once Controlador/Vendedor.php;
var_dump(new class{
public function __construct(){
}
});
var_dump(new class(10){
private $num;
public function __co... | true |
59ceb5bbaf65fd1f5ce22ea5f97c69b8c7bef37e | PHP | PhpEssential/PHP-MVC | /dao/BaseModelDao.class.php | UTF-8 | 5,533 | 3.0625 | 3 | [
"Beerware"
] | permissive | <?php
namespace framework\dao;
use framework\Config;
use framework\bdd\DbConnection;
use framework\bdd\SqlAliasedField;
use framework\bdd\SqlField;
use framework\bdd\SqlSelect;
use framework\models\Model;
use framework\bdd\AliasedQueryField;
/**
* Dao de base associé à un model
*/
abstract class BaseModelDao {
... | true |
20637d08bf0b56e376ee138fe5c31a86ad514ea3 | PHP | KevinJCHe/web-development | /theme/woocommerce/content-single-product.php | UTF-8 | 14,753 | 2.5625 | 3 | [] | no_license | <?php
/**
* The template for displaying product content in the single-product.php template
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to cop... | true |
f719c14f47d1d5951510c95e66edcec8147f9881 | PHP | H4ad/laravel-scheduler | /tests/Unit/SchedulerModelTrait/ScenarioTwoTest.php | UTF-8 | 2,714 | 2.78125 | 3 | [] | no_license | <?php namespace H4ad\Scheduler\Tests\Unit;
/**
* Esse arquivo faz parte do Scheduler,
* uma biblioteca para auxiliar com agendamentos.
*
* @license MIT
* @package H4ad\Scheduler
*/
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Config;
use H4ad\Scheduler\Exceptions\CantRemoveByDate;
/**
* Confi... | true |
3e374fec50180a35172b72e0d00db967a42bf0df | PHP | dogcalas/cursoframework | /saue/apps/metadatos/models/bussines/CampoModel.php | UTF-8 | 8,747 | 2.5625 | 3 | [] | no_license | <?php
class CampoModel extends ZendExt_Model
{
public function CampoModel()
{
parent::ZendExt_Model();
$this->instance = new NomCampoestruc();
}
/** -------------------------------------------
* insertar un nuevo campo en la estructura
*/
public function i... | true |
e924f871074d14c5d333c9951a47a06238925fa9 | PHP | GibsonStudio/NatureTrail | /application/models/role_model.php | UTF-8 | 2,996 | 2.59375 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Role_model extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function get ($id = 0)
{
if ($id == 0)
{
$result = $this->db->query('SELECT * FROM {pre}accesslevel ORDER BY ... | true |
f49b97f3eee1af5765fcdee60a506b7bfab844bf | PHP | nexus-in/test-1 | /application/auth/Identity.php | UTF-8 | 1,029 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace application\auth;
use application\entities\User\User;
use application\readModels\UserReadRepository;
use Yii;
use yii\web\IdentityInterface;
class Identity implements IdentityInterface
{
public $user;
public function __construct(User $user)
{
$this->user = $user;
}
publi... | true |
6bcf2408f736547c61fa19d1743a4132dc37520b | PHP | LenonBelem/Mercado | /api/App/Model/Tax.php | UTF-8 | 3,588 | 2.953125 | 3 | [] | no_license | <?php
namespace App\Model;
use App\Database\Connection;
//outras Exceptions
use Exception;
use InvalidArgumentException;
class Tax
{
private $id;
private $description;
private $id_type;
private $tax;
public function getId()
{
return $this->id;
}
public function setId($id)
{
... | true |
b545ceaa2ebd707f2dc66e2bf945baf541b31d03 | PHP | MateuszCodes/DatabaseGateway | /get_stops.php | UTF-8 | 1,025 | 2.78125 | 3 | [] | no_license | <?php
$con = mysqli_connect("HostName", "User", "Pass", "DBName");
if (mysqli_connect_errno($con)){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$routeShortName = $_GET['routeshortname'];
$result = mysqli_query($con, "SELECT routeID FROM routes WHERE routeShortName = '$routeShortName'")... | true |
ea597b034f9809cb2504aacb40c15fcba8c60ee2 | PHP | momotaro39/Core_UI_Laravel8.6__only | /Memos/ResorceRouteMissMemo.php | UTF-8 | 7,020 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
|--------------------------------------------------------------------------
| 基本の設定 参照先 https://qiita.com/sympe/items/9297f41d5f7a9d91aa11
|--------------------------------------------------------------------------
|
| LaravelでRoute::resourceを使うときに気をつけること
|
| Laravelでルーティングを行う際に便利な、Route::resourceを使用した際の注意点... | true |
91f32def2aa1680caf55865e80f33e277390dfa2 | PHP | blue0125/blue0125.me | /system/Page.class.php | UTF-8 | 2,295 | 2.796875 | 3 | [] | no_license | <?php
//$Id$
class Page
{
private $pageName = 'pagenow';
public $pageNow = 1;
public $pageSize = 10;
public $pageCount;
public $url;
function __construct($config)
{
if (is_array($config)) {
foreach ($config as $key=>$val) {
if (isset($this->$key))
{
$this->$key = $val;
}
}
}
$t... | true |
61f555ef93d942db01ee96f2edcc5a1e8b8d3a2c | PHP | hirnsturm/typo3-extbase-services | /TYPO3/Extbase/Domain/Model/BaseMultiStepValueObject.php | UTF-8 | 1,397 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace Sle\TYPO3\Extbase\Domain\Model;
/**
* TYPO3 BaseMultiStepValueObject
*
* @author Steve Lenz <kontakt@steve-lenz.de>
* @copyright (c) 2015, Steve Lenz
*/
class BaseMultiStepValueObject extends BaseValueObject
{
/**
* Count of steps
*
* @var integer
*/
protected $steps ... | true |
ce5d8345ffa70938dc5066f5841f8c1037b49428 | PHP | delian1986/Softuni_PHP | /PHPTasks/Task Management Application/TaskManagement/Service/UserService.php | UTF-8 | 1,985 | 3.09375 | 3 | [] | no_license | <?php
namespace TaskManagement\Service;
use TaskManagement\DTO\UserDTO;
use TaskManagement\Repository\UserRepositoryInterface;
class UserService implements UserServiceInterface
{
/** @var UserRepositoryInterface */
private $userRepository;
/**
* UserService constructor.
* @param UserReposito... | true |
5cdccbadb3138c56e681552c79bc60de4d5d1e62 | PHP | antonio095/panaexpofinal | /indexBackup.php | UTF-8 | 27,427 | 2.859375 | 3 | [] | no_license | <pre>
<?php
require_once "MergePdf.class.php";
include 'vendor/autoload.php';
include 'PdfToText.phpclass';
// include 'connection.php';
function array_insert(&$array, $position, $insert)
{
if (is_int($position)) {
array_splice($array, $position, 0, $insert);
} else {
$pos = array... | true |
002274efae5100dbfa8668da4dd0ba8c66ed5188 | PHP | karamel-pack/env | /src/Drivers/File.php | UTF-8 | 1,618 | 3.03125 | 3 | [] | no_license | <?php
namespace Karamel\Env\Drivers;
use Karamel\Env\Exceptions\EnvFileInvalidFormatException;
use Karamel\Env\Exceptions\EnvFileNotFoundException;
use Karamel\Env\Interfaces\IEnv;
class File implements IEnv
{
private $path;
private $envs;
/**
* File constructor.
* @param $path
*/
pu... | true |
13036802fb8325bc0dce4b8df05c61ebcfebb93a | PHP | WilmarSanchez/Proyecto01 | /Car.php | UTF-8 | 1,465 | 3.453125 | 3 | [] | no_license | <?php
class Car
{
public $empresa;
public $color = "rojo";
public $tieneCapota = true;
public $contenidoTanque;
protected $modelo = "Sin definir";
private $modelos_permitidos = array("audi", "mazda", "mercedes", "lamborgini");
public function __construct($mod="Sin definir")
{
... | true |
e91caadfe3d47304682d7ddc76e7cc35ea1cc9d7 | PHP | digideskio/backckendlara | /src/Darryldecode/Backend/Components/ContentBuilder/Commands/DeleteContentTypeCommand.php | UTF-8 | 2,361 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: darryl
* Date: 2/3/2015
* Time: 6:26 PM
*/
namespace Darryldecode\Backend\Components\ContentBuilder\Commands;
use Darryldecode\Backend\Base\Commands\Command;
use Darryldecode\Backend\Components\ContentBuilder\Models\ContentType;
use Illuminate\Contracts\Bus\SelfHandling;
... | true |