ajout de la methode allTexts() dans site\models\year.php
This commit is contained in:
parent
344af4c0fe
commit
dee8f94182
2 changed files with 10 additions and 1 deletions
8
site/models/year.php
Normal file
8
site/models/year.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
class YearPage extends Page{
|
||||
public function allTexts(){
|
||||
$texts = $this->children()->listed();
|
||||
$linked = $this->linkedTexts()->toPages();
|
||||
return $texts->merge($linked);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue