Add days of week to flights table; add to import/export for flights

This commit is contained in:
Nabeel Shahzad
2018-03-22 21:21:35 -05:00
parent 8b53ca2fdc
commit 7105e82922
17 changed files with 310 additions and 21 deletions

View File

@@ -1,5 +1,18 @@
<?php
if (!function_exists('in_mask')) {
/**
* Return true/false if a value exists in a mask
* @param $mask
* @param $value
* @return bool
*/
function in_mask($mask, $value)
{
return ($mask & $value) === $value;
}
}
if (!function_exists('get_truth_state')) {
/**
* Check if the passed state matches any of the states that