Deprecate is_grouping in favor of isStory

This commit is contained in:
Benoît Burnichon
2015-07-13 18:14:51 +02:00
parent 2107cd28df
commit c97eedd40f
20 changed files with 43 additions and 43 deletions

View File

@@ -119,7 +119,7 @@ abstract class set_abstract implements IteratorAggregate
{
$n = 0;
foreach ($this->elements as $record) {
if ($record->is_grouping())
if ($record->isStory())
$n ++;
}

View File

@@ -100,7 +100,7 @@ class set_export extends set_abstract
continue;
}
if ($record->is_grouping()) {
if ($record->isStory()) {
foreach ($record->get_children() as $child_basrec) {
$base_id = $child_basrec->get_base_id();
$record_id = $child_basrec->get_record_id();

View File

@@ -128,7 +128,7 @@ class set_selection extends set_abstract
} catch (\Exception $e) {
continue;
}
if ($record->is_grouping() && $flatten_groupings === true) {
if ($record->isStory() && $flatten_groupings === true) {
foreach ($record->get_children() as $rec) {
$this->add_element($rec);
}