getRowIdFromLabel() public method

This method executes in constant time except for the first call which caches row label => row ID mappings.
public getRowIdFromLabel ( string $label ) : integer
$label string `'label'` column value to look for.
return integer The row ID.
コード例 #1
0
ファイル: API.php プロジェクト: KiwiJuicer/handball-dachau
 /**
  * @param DataTable $table
  */
 private function filterOutKeywordNotDefined($table)
 {
     if ($table instanceof DataTable) {
         $row = $table->getRowIdFromLabel('');
         if ($row) {
             $table->deleteRow($row);
         }
     }
 }