You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
391 B
PHP

<?php
namespace NN\Module;
require_once SETUP_PATH.'module/db.php';
use NN\Session;
use NN\Module\DB;
class Perusahaan {
public static function get($kode = "nama_perusahaan"){
$r = DB::query_result_object_row("SELECT data FROM profile WHERE kode = '$kode'")->data;
return $r;
}
public static function datalogin(){
return Session::get('login');
}
}