3 class mw_data_versions extends mw_data{
5 public function version($application_name){
7 $version = $this->data_read(
9 "table_name" => "versions",
10 "index_name" => "application",
11 "index_value" => $application_name
14 ) return $version["version"];
18 public function set_version($application_name, $version){
21 $data_version = $this->data_read(
23 "table_name" => "versions",
24 "index_name" => "application",
25 "index_value" => $application_name
36 "table_name" => "versions",
38 "index_value" => $data_version["id"],
52 "table_name" => "versions",
54 "application" => $application_name,