static public function get_licenses($param = null) {
        global $DB;
        if (empty($param) || !is_array($param)) {
            $param = array();
        }
        // get licenses by conditions
        if ($records = $DB->get_records('license', $param)) {
            return $records;
        } else {
            return array();
        }
    }
static public function get_licenses($param = null) {
        global $DB;
        if (empty($param) || !is_array($param)) {
            $param = array();
        }
        // get licenses by conditions
        if ($records = $DB->get_records('license', $param)) {
            return $records;
        } else {
            return array();
        }
    }
static public function get_licenses ( $ param = null ) { global $ DB ; if ( empty ( $ param ) || ! is_array ( $ param ) ) { $ param = array ( ) ; } // get licenses by conditions if ( $ records = $ DB -> get_records ( 'license' , $ param ) ) { return $ records ; } else { return array ( ) ; } }
Get license records
@param mixed $param
@return array
Get license records