1<?php 2 3namespace dokuwiki\plugin\yearbox\services\pageNameStrategies; 4 5class YearNS extends PageNameStrategy 6{ 7 8 public function getPageId($baseNS, $year, $month, $day, $name) 9 { 10 $pagename = ($name ? "$name-" : '') . "$year-$month-$day"; 11 return "$baseNS:$year:$pagename"; 12 } 13} 14