/** * Get User permission level on a table * * @static * @param integer $id_who User ID * @param string $what Privilege type * @return integer Permission level */ public static function get_ulevel($id_area, $id_who, $what) { $mod = new Permission_model(); $level = $mod->get_upriv($id_area, $id_who, $what); return $level; }