Exemplo n.º 1
0
 /**
  * Get the rows of a foreign table where the title column equals a given
  * value.
  * 
  * @param DB\Table $foreign_table
  * @param string $value The value to match against the title column.
  * @return Database_Result
  */
 protected function get_fk_rows($foreign_table, $value)
 {
     $foreign_table->reset_filters();
     $foreign_table->add_filter($foreign_table->get_title_column()->get_name(), '=', $value);
     return $foreign_table->get_records();
 }