actuel-inactuel/site/models/author.php
2024-10-16 08:53:53 +02:00

8 lines
No EOL
193 B
PHP

<?php
class AuthorPage extends Page {
public function getTexts() {
return page('textes')->index()->filter(function($text) {
return $text->author()->toPage() === $this;
});
}
}