This file contains hidden or 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 ReflectionClass; | |
/** | |
* Scan database result into entity class | |
* Data member of the entity class should exactly match with the database result column | |
* | |
*/ | |
class ObjectScanner |
This file contains hidden or 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 ReflectionClass; | |
class Helper | |
{ | |
public static function toRupiah($number, bool $withPrefix = true) | |
{ | |
return ($withPrefix ? "Rp " : "") . number_format($number, 0, ",", "."); | |
} |
This file contains hidden or 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
function uniqid(a = "",b = false){ | |
var c = Date.now()/1000; | |
var d = c.toString(16).split(".").join(""); | |
while(d.length < 14){ | |
d += "0"; | |
} | |
var e = ""; | |
if(b){ | |
e = "."; |
This file contains hidden or 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 ContainerNumber | |
{ | |
private array $charMap; | |
private string $containerNumber; | |
public function __construct(string $containerNumber) | |
{ | |
$this->setContainerNumber($containerNumber); |
This file contains hidden or 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 CurencyLang | |
{ | |
static function toEnglish($number) | |
{ | |
$hyphen = '-'; | |
$conjunction = ' and '; | |
$separator = ', '; | |
$negative = 'negative '; |
This file contains hidden or 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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |