Пример #1
0
 /**
  * Makes a guess about the table type.
  * Returns true if this should be a data table, false if layout table.
  */
 public static function is_data_table($e)
 {
     global $is_data_table;
     // "table" element containing <th> is considered a data table
     if ($is_data_table) {
         return;
     }
     foreach ($e->children() as $child) {
         if ($child->tag == "th") {
             $is_data_table = true;
         } else {
             BasicChecks::is_data_table($child);
         }
     }
 }