Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
inoerp committed May 27, 2017
1 parent b54e765 commit 5ccd146
Show file tree
Hide file tree
Showing 45 changed files with 7,476 additions and 31 deletions.
865 changes: 865 additions & 0 deletions inoerp/www/extensions/view/class.view.inc

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions inoerp/www/extensions/view/class.view_path.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php

class view_path extends dbObject{
public static $table_name = "view_path";
public static $primary_column = "view_path_id";
public static $parent_primary_column = "view_id";
// data base variables as stored database column name
public $field_a = [
"column_name",
"path",
"description",
"view_id"
];
//variables used for showing data

public $initial_search = [
"column_name",
"path",
"description",
];

public $column = [
"column_name",
"path",
"description",
];

public $requiredField = [
"column_name",
"path",
"description",
];


public $view_path_id;
public $view_id;
public $column_name;
public $path;
public $description;
public $msg;


public static function find_by_view_id($view_id) {
$sql = " SELECT * FROM " . self::$table_name;
$sql .= " WHERE view_id = '{$view_id}'";
$result = self::find_by_sql($sql);
return $result;
}

public static function find_by_columnName_viewId($column_name,$view_id) {
$sql = " SELECT * FROM " . self::$table_name;
$sql .= " WHERE view_id = '{$view_id}'";
$sql .= " AND column_name = '{$column_name}' ";
$sql = ino_perPageSql_i($sql, 1);
$result_array = self::find_by_sql($sql);
return !empty($result_array) ? array_shift($result_array) : false;
}

}

//end of view class
?>
Loading

0 comments on commit 5ccd146

Please sign in to comment.