コード例 #1
0
 public function getMasterDataTablenames()
 {
     return churchdb_getMasterDataTablenames();
 }
コード例 #2
0
/**
 * get masterdata tables
 * 
 * @return array
 */
function churchdb_getMasterDataTables()
{
    $tables = churchdb_getMasterDataTablenames();
    foreach ($tables as $t) {
        $res[$t["shortname"]] = churchcore_getTableData($t["tablename"], $t["sql_order"]);
        // auth data needed?
        if (isset($t["special_func"]) && $t["special_func"]["func"] == "editAuth") {
            foreach ($res[$t["shortname"]] as $data) {
                $data->auth = getAuthForDomain($data->id, $t["shortname"]);
            }
        }
    }
    return $res;
}