Ejemplo n.º 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 isDataTable($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::isDataTable($child);
         }
     }
 }
 /**
  * Makes a guess about the table type.
  * Returns true if this should be a data table, false if layout table.
  */
 public static function isDataTable()
 {
     global $is_data_table, $global_e;
     $is_data_table = false;
     BasicChecks::isDataTable($global_e);
     return $is_data_table;
 }