This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2019. | |
* | |
* Francesco "Abbadon1334" Danti <fdanti@gmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = function($array) { | |
$ret = []; | |
foreach($array as $item) | |
{ | |
$ret[] = $item; | |
} | |
return $ret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright (c) 2019. | |
* | |
* Francesco "Abbadon1334" Danti <fdanti@gmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include '../common.php'; | |
class MyApp extends \atk4\ui\App | |
{ | |
public $db; | |
public $auth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Zalas\Test; | |
use Symfony\Component\Process\Process; | |
trait BackgroundProcess | |
{ | |
/** | |
* @var Process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$radiusMaxInKm = (int) $filterRequest['km'][0] ?? $filterRequest['km'] ?? 0; | |
$IDCitta = (int) $value; | |
$mCitta = new Citta($this->app->db); | |
$mCitta->tryLoad($IDCitta); | |
$earthRadiusKilometers = 6378.140; | |
$latitude = $mCitta->get('Latitude'); | |
$longitude = $mCitta->get('Longitude'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Testing check for class existence and if caching class name is relevant in function of performance | |
check over 10000000 iterations just to minimize errors and first loading of not already loaded existent class | |
Results on PHP 7.3.5 below shows that is not needed :) | |
BENCHMARK CASE CACHE REFLECTION AVG Time(s) Max Time(s) Tot Time(s) StdDev Time AVG MEM(b) | |
\Profiler N N 0.00000069 0.00246596 6.92156839 0.00000104 53.68750880 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "abbadon1334/nemesi", | |
"description": "description", | |
"type": "project", | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Francesco Danti", | |
"email": "fdanti@gmail.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class UserGridCriteria extends \atk4\data\Model | |
{ | |
public $table = "user_grid_criteria"; | |
public $title_field = "name"; | |
/** | |
* @var string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use atk4\core\AppScopeTrait; | |
use atk4\core\DIContainerTrait; | |
use atk4\core\FactoryTrait; | |
use atk4\core\InitializerTrait; | |
use atk4\core\TrackableTrait; | |
use atk4\ui\CRUD; | |
trait PluginTrait |
OlderNewer